Add treesitter refactor plugin
This commit is contained in:
parent
d1350909c5
commit
3d9596a6c7
|
@ -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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue