feat(refactor.navigation): add navigation.goto_{next,previous}_usage

This commit is contained in:
Stephan Seitz 2020-08-22 20:46:40 +02:00 committed by Thomas Vigouroux
parent ffe7d96dfd
commit 5948aba886
7 changed files with 72 additions and 20 deletions

View file

@ -185,6 +185,9 @@ EOF
Provides "go to definition" for the symbol under the cursor,
and lists the definitions from the current file.
goto_next_usage/goto_previous_usage go to the next usage of the
identifier under the cursor.
```lua
lua <<EOF
@ -195,6 +198,8 @@ require'nvim-treesitter.configs'.setup {
keymaps = {
goto_definition = "gnd",
list_definitions = "gnD",
goto_next_usage = "<a-*>",
goto_previous_usage = "<a-#>",
},
},
},