move treesitter conditional to cond.lua

This commit is contained in:
2025-02-08 21:11:33 -05:00
parent 8b17a513b5
commit 1c75328bbe
+1 -4
View File
@@ -14,10 +14,7 @@ return {
opts = require('data.types').treesitter.opts,
lazy = true,
event = 'LazyFile',
cond = function()
-- Only load for editable buffers
return vim.bo.buftype == '' and not vim.bo.readonly
end,
cond = require('data.cond').treesitter,
},
{ -- nvim-lspconfig
'neovim/nvim-lspconfig',