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