From 8eaa615596be321a3be12378c5e7d65cc7e482b6 Mon Sep 17 00:00:00 2001 From: Squibid Date: Fri, 24 Jan 2025 13:56:11 -0600 Subject: kitchen sink --- lua/conf/plugins/treesitter.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lua/conf/plugins/treesitter.lua') 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 -- cgit v1.2.1