mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
fix: don't overwrite highlights when defining
This commit is contained in:
parent
5d11dfc278
commit
b273a06728
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ if ts.highlighter.hl_map then
|
|||
end
|
||||
elseif not vim.g.skip_ts_default_groups then
|
||||
link_captures = function(capture, hlgroup)
|
||||
api.nvim_set_hl(0, "@" .. capture, { link = hlgroup })
|
||||
api.nvim_set_hl(0, "@" .. capture, { link = hlgroup, default = true })
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue