mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(treesitter): refactor module
This commit is contained in:
parent
4aee6c1400
commit
f5d5b06b9c
1 changed files with 23 additions and 0 deletions
|
|
@ -42,6 +42,9 @@ return {
|
|||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter-refactor",
|
||||
},
|
||||
},
|
||||
cmd = { "TSUpdateSync", "TSUpdate", "TSInstall" },
|
||||
keys = {
|
||||
|
|
@ -96,6 +99,26 @@ return {
|
|||
goto_previous_end = { ["[F"] = "@function.outer", ["[C"] = "@class.outer" },
|
||||
},
|
||||
},
|
||||
refactor = {
|
||||
highlight_definitions = { enable = true },
|
||||
smart_rename = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
smart_rename = "grr",
|
||||
},
|
||||
},
|
||||
navigation = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
goto_definition = false,
|
||||
list_definitions = false,
|
||||
list_definitions_toc = false,
|
||||
|
||||
goto_next_usage = { ["]]"] = "Next reference" },
|
||||
goto_previous_usage = { ["[["] = "Previous reference" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
---@param opts TSConfig
|
||||
config = function(_, opts)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue