diff options
| author | Thomas Vigouroux <thomas.vigouroux@protonmail.com> | 2022-10-07 15:25:01 +0200 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-10-08 11:28:04 +0200 |
| commit | b273a06728305c1e7bd0179977ca48049aeff5e6 (patch) | |
| tree | 485ee00b2fc6804ef7c25901e0bb51382a664cd3 /lua/nvim-treesitter/highlight.lua | |
| parent | 5d11dfc27849e3d7435c32dbd8ea9be35bcd990b (diff) | |
fix: don't overwrite highlights when defining
Diffstat (limited to 'lua/nvim-treesitter/highlight.lua')
| -rw-r--r-- | lua/nvim-treesitter/highlight.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua index d30d1900..0f4a11f7 100644 --- a/lua/nvim-treesitter/highlight.lua +++ b/lua/nvim-treesitter/highlight.lua @@ -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 |
