Skip to content

Commit edad895

Browse files
authored
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.
1 parent 6afec7b commit edad895

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ require('nvim-treesitter.configs').setup {
235235
lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim
236236
keymaps = {
237237
-- You can use the capture groups defined in textobjects.scm
238+
['aa'] = '@parameter.outer',
239+
['ia'] = '@parameter.inner',
238240
['af'] = '@function.outer',
239241
['if'] = '@function.inner',
240242
['ac'] = '@class.outer',

0 commit comments

Comments
 (0)