diff options
author | Squibid <me@zacharyscheiman.com> | 2025-01-24 13:56:11 -0600 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2025-01-24 13:56:11 -0600 |
commit | 8eaa615596be321a3be12378c5e7d65cc7e482b6 (patch) | |
tree | 53fe601048ea302962420de4feff465e4c7d9317 /lua/conf/plugins/treesitter.lua | |
parent | a0ebc39b59a98a69fbb6abf150f86dc4e19987a3 (diff) | |
download | nvim-8eaa615596be321a3be12378c5e7d65cc7e482b6.tar.gz nvim-8eaa615596be321a3be12378c5e7d65cc7e482b6.tar.bz2 nvim-8eaa615596be321a3be12378c5e7d65cc7e482b6.zip |
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 |