diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-09-29 23:47:19 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-09-29 23:47:19 +0200 |
commit | 82021c72d10c0c1b20551e373b7bc436faae65c5 (patch) | |
tree | 20808f3bf607a8854d64f825f54f5a0b66c46f4b /.config/nvim/after | |
parent | 1024970410d98d342a0139a66b05d2fc5e4f35eb (diff) |
nvim: Add support for GSP textobjects
Diffstat (limited to '.config/nvim/after')
-rw-r--r-- | .config/nvim/after/plugin/treesitter.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua index ce7f273..49c21f2 100644 --- a/.config/nvim/after/plugin/treesitter.lua +++ b/.config/nvim/after/plugin/treesitter.lua @@ -50,6 +50,8 @@ require('nvim-treesitter.configs').setup { ['if'] = '@function.inner', ['ab'] = '@block.outer', ['ib'] = '@block.inner', + ['an'] = '@node.outer', + ['in'] = '@node.inner', }, }, move = { @@ -58,18 +60,22 @@ require('nvim-treesitter.configs').setup { goto_next_start = { [']f'] = '@function.outer', [']b'] = '@block.outer', + [']n'] = '@node.outer', }, goto_next_end = { [']F'] = '@function.outer', [']B'] = '@block.outer', + [']N'] = '@node.outer', }, goto_previous_start = { ['[f'] = '@function.outer', ['[b'] = '@block.outer', + ['[n'] = '@node.outer', }, goto_previous_end = { ['[F'] = '@function.outer', ['[B'] = '@block.outer', + ['[N'] = '@node.outer', }, }, }, |