mini.ai: move to extras. Add default textobjects to treesitter, improved comment to t = false

This commit is contained in:
abeldekat 2023-09-14 08:23:38 +02:00
parent 7eb53e9a79
commit e2a94a51d5

View file

@ -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" },