mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
Update example
This commit is contained in:
parent
4f3954732b
commit
366e8b43bf
1 changed files with 7 additions and 3 deletions
10
README.md
10
README.md
|
|
@ -115,12 +115,16 @@ require'nvim-treesitter.configs'.setup {
|
||||||
},
|
},
|
||||||
smart_rename = {
|
smart_rename = {
|
||||||
enable = true,
|
enable = true,
|
||||||
smart_rename = "grr" -- mapping to rename reference under cursor
|
keymaps = {
|
||||||
|
smart_rename = "grr" -- mapping to rename reference under cursor
|
||||||
|
}
|
||||||
},
|
},
|
||||||
navigation = {
|
navigation = {
|
||||||
enable = true,
|
enable = true,
|
||||||
goto_definition = "gnd", -- mapping to go to definition of symbol under cursor
|
keymaps = {
|
||||||
list_definitions = "gnD" -- mapping to list all definitions in current file
|
goto_definition = "gnd", -- mapping to go to definition of symbol under cursor
|
||||||
|
list_definitions = "gnD" -- mapping to list all definitions in current file
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ensure_installed = 'all' -- one of 'all', 'language', or a list of languages
|
ensure_installed = 'all' -- one of 'all', 'language', or a list of languages
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue