From e2a94a51d5e35d5706553726169fb9291c2b327e Mon Sep 17 00:00:00 2001 From: abeldekat Date: Thu, 14 Sep 2023 08:23:38 +0200 Subject: [PATCH] mini.ai: move to extras. Add default textobjects to treesitter, improved comment to t = false --- lua/lazyvim/plugins/extras/coding/mini-ai.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/extras/coding/mini-ai.lua b/lua/lazyvim/plugins/extras/coding/mini-ai.lua index 2c43e831..e42e0d72 100644 --- a/lua/lazyvim/plugins/extras/coding/mini-ai.lua +++ b/lua/lazyvim/plugins/extras/coding/mini-ai.lua @@ -74,8 +74,10 @@ return { n_lines = 500, custom_textobjects = { - -- see: https://github.com/echasnovski/mini.nvim/issues/474 - t = false, -- for now, fallback to neovim's builtin tag. + -- opt-out: using neovim's text object selection for tags: + t = false, + -- opt-in: use the following override in the "opts" function of your spec: + -- opts.custom_textobjects.t = nil -- opt-in to mini.ai's tag textobject o = ai.gen_spec.treesitter({ a = { "@block.outer", "@conditional.outer", "@loop.outer" },