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

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

No files matched your search

+1 -9
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 {