mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
feat(refactor.navigation): add navigation.goto_{next,previous}_usage
This commit is contained in:
parent
ffe7d96dfd
commit
5948aba886
7 changed files with 72 additions and 20 deletions
|
|
@ -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-#>",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue