diff options
Diffstat (limited to '')
-rw-r--r-- | lua/conf/plugins/treesitter.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/conf/plugins/treesitter.lua b/lua/conf/plugins/treesitter.lua index a81e295..4f010d9 100644 --- a/lua/conf/plugins/treesitter.lua +++ b/lua/conf/plugins/treesitter.lua @@ -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 |