浏览代码

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.
Carlo Teubner 4 年之前
父节点
当前提交
edad895bf4
共有 1 个文件被更改,包括 2 次插入 和 0 次删除
  1. 2 0
      init.lua

+ 2 - 0
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',