aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorNull Chilly <nullchilly@gmail.com>2022-09-14 18:09:56 +0700
committerChristian Clason <christian.clason@uni-due.de>2022-09-19 17:12:40 +0200
commit1a85a335c271e962204390e1984e96aa170e62ec (patch)
treeda04c4fd4432747bf7f106a06f582781e066530a /lua
parenthighlights(elvish): Use `@function.builtin` for operator-like functions (diff)
downloadnvim-treesitter-1a85a335c271e962204390e1984e96aa170e62ec.tar
nvim-treesitter-1a85a335c271e962204390e1984e96aa170e62ec.tar.gz
nvim-treesitter-1a85a335c271e962204390e1984e96aa170e62ec.tar.bz2
nvim-treesitter-1a85a335c271e962204390e1984e96aa170e62ec.tar.lz
nvim-treesitter-1a85a335c271e962204390e1984e96aa170e62ec.tar.xz
nvim-treesitter-1a85a335c271e962204390e1984e96aa170e62ec.tar.zst
nvim-treesitter-1a85a335c271e962204390e1984e96aa170e62ec.zip
fix(highlight): respect g:skip_ts_default_groups on ColorScheme autocmd
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/highlight.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua
index af18b68e0..c1c20375a 100644
--- a/lua/nvim-treesitter/highlight.lua
+++ b/lua/nvim-treesitter/highlight.lua
@@ -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 = {