fix(highlight): respect g:skip_ts_default_groups on ColorScheme autocmd

This commit is contained in:
Null Chilly 2022-09-14 18:09:56 +07:00 committed by Christian Clason
parent b92535f045
commit 1a85a335c2

View file

@ -183,7 +183,7 @@ function M.set_custom_captures(captures)
end
function M.set_default_hlgroups()
if not ts.highlighter.hl_map then
if not ts.highlighter.hl_map and not vim.g.skip_ts_default_groups then
link_all_captures()
end
local highlights = {