mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
fix(highlight): respect g:skip_ts_default_groups on ColorScheme autocmd
This commit is contained in:
parent
b92535f045
commit
1a85a335c2
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ function M.set_custom_captures(captures)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.set_default_hlgroups()
|
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()
|
link_all_captures()
|
||||||
end
|
end
|
||||||
local highlights = {
|
local highlights = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue