summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Teubner <435950+c4rlo@users.noreply.github.com>2022-11-25 18:18:01 +0000
committerGitHub <noreply@github.com>2022-11-25 13:18:01 -0500
commitedad895bf43a737284f97503aa9fcf5f4188317f (patch)
tree77a009c901b7f20fcfce28dade725f0ad0e9e5eb
parent6afec7b35de1ce5bf9a7a117ac2dd89771b4f363 (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.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 88c3857..6800ace 100644
--- a/init.lua
+++ b/init.lua
@@ -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',