Enable parameter text objects (#36)
This seems like a natural addition. In classic Vim, I used to use https://github.com/b4winckler/vim-angry for this.
This commit is contained in:
parent
6afec7b35d
commit
edad895bf4
2
init.lua
2
init.lua
|
@ -235,6 +235,8 @@ require('nvim-treesitter.configs').setup {
|
||||||
lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim
|
lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim
|
||||||
keymaps = {
|
keymaps = {
|
||||||
-- You can use the capture groups defined in textobjects.scm
|
-- You can use the capture groups defined in textobjects.scm
|
||||||
|
['aa'] = '@parameter.outer',
|
||||||
|
['ia'] = '@parameter.inner',
|
||||||
['af'] = '@function.outer',
|
['af'] = '@function.outer',
|
||||||
['if'] = '@function.inner',
|
['if'] = '@function.inner',
|
||||||
['ac'] = '@class.outer',
|
['ac'] = '@class.outer',
|
||||||
|
|
Loading…
Reference in New Issue