kitchen sink
This commit is contained in:
@ -8,7 +8,7 @@ table.contains = function(self, string)
|
||||
end
|
||||
|
||||
return { 'nvim-treesitter/nvim-treesitter',
|
||||
disable = vim.version.lt(vim.version(), { 0, 9, 2 }),
|
||||
disable = vim.version().minor < 10,
|
||||
config = function()
|
||||
vim.cmd.TSUpdate()
|
||||
end,
|
||||
@ -24,11 +24,11 @@ return { 'nvim-treesitter/nvim-treesitter',
|
||||
indent = {
|
||||
enable = true,
|
||||
|
||||
disable = function(lang, buf)
|
||||
disable = function(lang, _)
|
||||
-- disable indenting in php (it's more broken with than without)
|
||||
return table.contains({
|
||||
return table.contains(({
|
||||
"php"
|
||||
}, lang)
|
||||
}), lang)
|
||||
end
|
||||
},
|
||||
|
||||
@ -40,9 +40,9 @@ return { 'nvim-treesitter/nvim-treesitter',
|
||||
|
||||
disable = function(lang, buf)
|
||||
-- disable in some files where vim's builtin highlighting is better
|
||||
if table.contains({
|
||||
if table.contains(({
|
||||
"diff", "tex"
|
||||
}, lang) then
|
||||
}), lang) then
|
||||
return true
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user