diff options
author | Carlo Teubner <435950+c4rlo@users.noreply.github.com> | 2022-11-25 18:18:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 13:18:01 -0500 |
commit | edad895bf43a737284f97503aa9fcf5f4188317f (patch) | |
tree | 77a009c901b7f20fcfce28dade725f0ad0e9e5eb | |
parent | 6afec7b35de1ce5bf9a7a117ac2dd89771b4f363 (diff) |
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.
-rw-r--r-- | init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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', |