fix: don't overwrite highlights when defining

This commit is contained in:
Thomas Vigouroux 2022-10-07 15:25:01 +02:00 committed by Christian Clason
parent 5d11dfc278
commit b273a06728

View file

@ -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