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 | fd921559212897d4e0fcb03d6fdb9520e50682e1 (patch) | |
| tree | 6cd5c93e5664baf48cd2ac3508aed8a5ae740553 /nvim | |
| parent | c0811a7bdd5556b78e32a3d81ed839af0c8dc8d8 (diff) | |
| download | dots-fd921559212897d4e0fcb03d6fdb9520e50682e1.tar.gz | |
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.
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 88c3857..6800ace 100644 --- a/nvim/init.lua +++ b/nvim/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', |