fix(treesitter-textobjects): only disable the textobject plugins/* files when its not enabled in the treesitter opts

This commit is contained in:
Folke Lemaitre
2023-02-16 20:12:54 +01:00
parent eccd122e6d
commit 94ebe25ccb
2 changed files with 23 additions and 9 deletions

View File

@ -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 {