diff options
Diffstat (limited to '')
-rw-r--r-- | lua/conf/plugins/treesitter.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/conf/plugins/treesitter.lua b/lua/conf/plugins/treesitter.lua index 82ccc61..cad715e 100644 --- a/lua/conf/plugins/treesitter.lua +++ b/lua/conf/plugins/treesitter.lua @@ -42,9 +42,10 @@ return { 'nvim-treesitter/nvim-treesitter', additional_vim_regex_highlighting = true, disable = function(lang, buf) - -- disable in diff files - local langs = { "diff" } - if table.contains(langs, lang) then + -- disable in some files where vim's builtin highlighting is better + if table.contains({ + "diff", "tex" + }, lang) then return true end |