🐛 Bug(treesitter): remove broken conditional
The condition for enabling treesitter caused treesitter-textobject errors whenever lazy.nvim installs plugins
This commit is contained in:
@@ -189,11 +189,6 @@ M.neotree = function()
|
|||||||
return func.check_global_var('useneotree', true, true)
|
return func.check_global_var('useneotree', true, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.treesitter = function()
|
|
||||||
-- Only load for editable buffers
|
|
||||||
return vim.bo.buftype == '' and not vim.bo.readonly
|
|
||||||
end
|
|
||||||
|
|
||||||
--- Tabnine conditional options
|
--- Tabnine conditional options
|
||||||
M.tabnine = function()
|
M.tabnine = function()
|
||||||
return func.check_global_var('aitool', 'tabnine', 'neocodeium')
|
return func.check_global_var('aitool', 'tabnine', 'neocodeium')
|
||||||
|
|||||||
@@ -12,9 +12,6 @@ return {
|
|||||||
{ -- nvim-treesitter
|
{ -- nvim-treesitter
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
opts = require('data.types').treesitter.opts,
|
opts = require('data.types').treesitter.opts,
|
||||||
lazy = true,
|
|
||||||
event = 'LazyFile',
|
|
||||||
cond = require('data.cond').treesitter,
|
|
||||||
},
|
},
|
||||||
{ -- Yanky
|
{ -- Yanky
|
||||||
'gbprod/yanky.nvim',
|
'gbprod/yanky.nvim',
|
||||||
|
|||||||
Reference in New Issue
Block a user