add another language to the highlight disable list
This commit is contained in:
parent
8b86a03fda
commit
704734841f
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue