Add treesitter refactor plugin
This commit is contained in:
parent
d1350909c5
commit
3d9596a6c7
|
@ -17,4 +17,18 @@ return {
|
|||
enable = true,
|
||||
-- disable = { "python" },
|
||||
},
|
||||
refactor = {
|
||||
smart_rename = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
smart_rename = "grr",
|
||||
},
|
||||
},
|
||||
navigation = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
goto_definition_lsp_fallback = "gnd",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -9,8 +9,8 @@ return {
|
|||
"TSUpdate",
|
||||
"TSEnable",
|
||||
},
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup(require "config.treesitter")
|
||||
-- vim.cmd "TSUpdate"
|
||||
end,
|
||||
config = function() require("nvim-treesitter.configs").setup(require "config.treesitter") end,
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter-refactor",
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue