Skip to content

Commit

Permalink
Enable parameter text objects (nvim-lua#36)
Browse files Browse the repository at this point in the history
This seems like a natural addition. In classic Vim, I used to use https://github.com/b4winckler/vim-angry for this.
  • Loading branch information
c4rlo authored Nov 25, 2022
1 parent 6afec7b commit edad895
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ require('nvim-treesitter.configs').setup {
lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim
keymaps = {
-- You can use the capture groups defined in textobjects.scm
['aa'] = '@parameter.outer',
['ia'] = '@parameter.inner',
['af'] = '@function.outer',
['if'] = '@function.inner',
['ac'] = '@class.outer',
Expand Down

0 comments on commit edad895

Please sign in to comment.