dotfiles/.config/nvim/lua/plugins/extras/coding/refactoring.lua
Sergio Laín e457722492
📁 files(nvim): changes to the directories and extras
another bug change to the structure of the nvim config. probably, tomorrow will be finished
2023-10-25 12:38:42 +02:00

19 lines
519 B
Lua

local Util = require("lazyvim.util")
return {
"ThePrimeagen/refactoring.nvim",
requires = {
{ "nvim-lua/plenary.nvim" },
{ "nvim-treesitter/nvim-treesitter" },
},
opts = {},
config = function(_, opts)
Util.on_load("telescope.nvim", function()
require("telescope").load_extension("refactoring")
end)
end,
-- stylua: ignore
keys = {
{ "<leader>r", function() require('telescope').extensions.refactoring.refactors() end, mode = { "n", "x" }, desc = "Refactor" },
},
}