From 0660f9c97bb358a216c30edd087c60da925e1bad Mon Sep 17 00:00:00 2001 From: abeldekat Date: Tue, 12 Sep 2023 18:55:36 +0200 Subject: [PATCH] miniai_fix_tag: default to opt-out for the tag textobject provided by mini.ai --- lua/lazyvim/plugins/coding.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/lazyvim/plugins/coding.lua b/lua/lazyvim/plugins/coding.lua index cbf94e77..13c6059d 100644 --- a/lua/lazyvim/plugins/coding.lua +++ b/lua/lazyvim/plugins/coding.lua @@ -164,6 +164,11 @@ return { return { n_lines = 500, custom_textobjects = { + -- 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" }, i = { "@block.inner", "@conditional.inner", "@loop.inner" },