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, enable = true,
-- disable = { "python" }, -- 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", "TSUpdate",
"TSEnable", "TSEnable",
}, },
config = function() config = function() require("nvim-treesitter.configs").setup(require "config.treesitter") end,
require("nvim-treesitter.configs").setup(require "config.treesitter") dependencies = {
-- vim.cmd "TSUpdate" "nvim-treesitter/nvim-treesitter-refactor",
end, },
} }