diff options
| author | Steven Sojka <steelsojka@users.noreply.github.com> | 2020-08-17 11:39:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-17 11:39:22 -0500 |
| commit | b796f0725d913cba0a292bb7b750f0403b07c94a (patch) | |
| tree | 6645909fcf422b0d77f513514ece4a539135aba4 /doc | |
| parent | 0b3cd6c131a5ee9e3377c6b348c2b8995a848967 (diff) | |
| parent | 52168114594d791a3ae6092ab2489758da7b3ae8 (diff) | |
Merge pull request #305 from theHamsta/textobjects-submodules
Textobjects submodules
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/nvim-treesitter.txt | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt index 3634418d..096d8698 100644 --- a/doc/nvim-treesitter.txt +++ b/doc/nvim-treesitter.txt @@ -94,7 +94,31 @@ By default, everything is disabled. To enable support for features, in your `ini ["ad"] = "@comment.outer", ["am"] = "@call.outer", ["im"] = "@call.inner" - } + }, + -- swap parameters (keymap -> textobject query) + swap_next = { + ["<a-p>"] = "@parameter.inner", + }, + swap_previous = { + ["<a-P>"] = "@parameter.inner", + }, + -- set mappings to go to start/end of adjacent textobjects (keymap -> textobject query) + goto_previous_start = { + ["[m"] = "@function.outer", + ["[["] = "@class.outer", + }, + goto_previous_end = { + ["[M"] = "@function.outer", + ["[]"] = "@class.outer", + }, + goto_next_start = { + ["]m"] = "@function.outer", + ["]]"] = "@class.outer", + }, + goto_next_end = { + ["]M"] = "@function.outer", + ["]["] = "@class.outer", + }, }, ensure_installed = "all" -- one of "all", "language", or a list of languages } |
