add another language to the highlight disable list
This commit is contained in:
@ -42,9 +42,10 @@ return { 'nvim-treesitter/nvim-treesitter',
|
|||||||
additional_vim_regex_highlighting = true,
|
additional_vim_regex_highlighting = true,
|
||||||
|
|
||||||
disable = function(lang, buf)
|
disable = function(lang, buf)
|
||||||
-- disable in diff files
|
-- disable in some files where vim's builtin highlighting is better
|
||||||
local langs = { "diff" }
|
if table.contains({
|
||||||
if table.contains(langs, lang) then
|
"diff", "tex"
|
||||||
|
}, lang) then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user