move treesitter conditional to cond.lua
This commit is contained in:
@@ -14,10 +14,7 @@ return {
|
|||||||
opts = require('data.types').treesitter.opts,
|
opts = require('data.types').treesitter.opts,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = 'LazyFile',
|
event = 'LazyFile',
|
||||||
cond = function()
|
cond = require('data.cond').treesitter,
|
||||||
-- Only load for editable buffers
|
|
||||||
return vim.bo.buftype == '' and not vim.bo.readonly
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
{ -- nvim-lspconfig
|
{ -- nvim-lspconfig
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
|
|||||||
Reference in New Issue
Block a user