[nvim] mini.ai and treesitter-textobjects
This commit is contained in:
parent
cf5d16e792
commit
5144c74839
1 changed files with 13 additions and 1 deletions
|
@ -38,6 +38,18 @@ return {
|
|||
'echasnovski/mini.ai',
|
||||
event = "VeryLazy",
|
||||
version = false,
|
||||
opts = {}
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter-textobjects'
|
||||
},
|
||||
config = function()
|
||||
local gen_spec = require('mini.ai').gen_spec
|
||||
require('mini.ai').setup({
|
||||
custom_textobjects = {
|
||||
-- Function definition (needs treesitter queries with these captures)
|
||||
F = gen_spec.treesitter({ a = '@function.outer', i = '@function.inner' }),
|
||||
},
|
||||
n_lines = 1000
|
||||
})
|
||||
end
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue