aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-08-22 20:46:40 +0200
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-08-31 18:56:41 +0200
commit5948aba886e8aad26043402684cf85c307813c4d (patch)
treeea402ab5c1468fb76c49a0e1f39a6c60b1260831 /doc
parentfeat(CI): auto-update README.md (diff)
downloadnvim-treesitter-5948aba886e8aad26043402684cf85c307813c4d.tar
nvim-treesitter-5948aba886e8aad26043402684cf85c307813c4d.tar.gz
nvim-treesitter-5948aba886e8aad26043402684cf85c307813c4d.tar.bz2
nvim-treesitter-5948aba886e8aad26043402684cf85c307813c4d.tar.lz
nvim-treesitter-5948aba886e8aad26043402684cf85c307813c4d.tar.xz
nvim-treesitter-5948aba886e8aad26043402684cf85c307813c4d.tar.zst
nvim-treesitter-5948aba886e8aad26043402684cf85c307813c4d.zip
feat(refactor.navigation): add navigation.goto_{next,previous}_usage
Diffstat (limited to 'doc')
-rw-r--r--doc/nvim-treesitter.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index 284b0ba41..09e3d1677 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -246,6 +246,10 @@ Supported options:
Defaults to `gnd`.
- list_definitions: list all definitions from the current file.
Defaults to `gnD`.
+ - goto_next_usage: go to next usage of identifier under the cursor.
+ Defaults to `<a-*>`.
+ - goto_previous_usage: go to previous usage of identifier.
+ Defaults to `<a-#>`.
>
lua <<EOF
@@ -256,6 +260,8 @@ Supported options:
keymaps = {
goto_definition = "gnd",
list_definitions = "gnD",
+ goto_next_usage = "<a-*>",
+ goto_previous_usage = "<a-#>",
},
},
},
@@ -513,6 +519,14 @@ Returns the previous node within the same parent.
`allow_switch_parent` and `allow_prev_parent` follow the same rule
as |ts_utils.get_next_node| but if the node is the first node.
+ *ts_utils.goto_node*
+goto_node(node, goto_end, avoid_set_jump)~
+
+Sets cursor to the position of `node` in the current windows.
+If `goto_end` is truthy, the cursor is set to the end the node range.
+Setting `avoid_set_jump` to `true`, avoids setting the current cursor position
+to the jump list.
+
==============================================================================
FUNCTIONS *nvim-treesitter-functions*