From 704734841fae73bd87c3e1c47c18aa4e45c2f951 Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 19 Nov 2024 13:38:25 -0600 Subject: add another language to the highlight disable list --- lua/conf/plugins/treesitter.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lua/conf') 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 -- cgit v1.2.1