repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
mini-nvim/lua/ai.lua
Rawlocal ai = _ 'mini.ai'
local spec_treesitter = ai.gen_spec.treesitter
ai.setup {
-- Table with textobject id as fields, textobject specification as values.
-- Also use this to disable builtin textobjects. See |MiniAi.config|.
custom_textobjects = {
m = spec_treesitter({ a = '@function.outer', i = '@function.inner' }),
f = spec_treesitter({ a = '@call.outer', i = '@call.inner' }),
o = spec_treesitter({
a = { '@conditional.outer', '@loop.outer' },
i = { '@conditional.inner', '@loop.inner' },
})
},
}