mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(treesitter-textobjects): only disable the textobject plugins/* files when its not enabled in the treesitter opts
This commit is contained in:
parent
eccd122e6d
commit
94ebe25ccb
2 changed files with 23 additions and 9 deletions
|
@ -151,15 +151,7 @@ return {
|
|||
-- { "i", mode = { "x", "o" } },
|
||||
-- },
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
init = function()
|
||||
-- no need to load the plugin, since we only need its queries
|
||||
require("lazy.core.loader").disable_rtp_plugin("nvim-treesitter-textobjects")
|
||||
end,
|
||||
},
|
||||
},
|
||||
dependencies = { "nvim-treesitter-textobjects" },
|
||||
opts = function()
|
||||
local ai = require("mini.ai")
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue