Add treesitter refactor plugin

This commit is contained in:
Evie Litherland-Smith 2023-03-10 11:56:00 +00:00
parent d1350909c5
commit 3d9596a6c7
2 changed files with 18 additions and 4 deletions

View file

@ -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",
},
},
},
}

View file

@ -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",
},
}