Update example

This commit is contained in:
Santos Gallegos 2020-07-10 19:04:29 -05:00 committed by Thomas Vigouroux
parent 4f3954732b
commit 366e8b43bf

View file

@ -115,12 +115,16 @@ require'nvim-treesitter.configs'.setup {
},
smart_rename = {
enable = true,
smart_rename = "grr" -- mapping to rename reference under cursor
keymaps = {
smart_rename = "grr" -- mapping to rename reference under cursor
}
},
navigation = {
enable = true,
goto_definition = "gnd", -- mapping to go to definition of symbol under cursor
list_definitions = "gnD" -- mapping to list all definitions in current file
keymaps = {
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