This commit is contained in:
2026-10-06 12:49:41 +03:00
parent 3fe6ca3d6b
commit a87e5ea4f5
6 changed files with 164 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
return {
-- The newer refactoring.nvim (Neovim 0.12+) replaced its plenary dependency
-- with lewis6991/async.nvim. The LazyVim extra doesn't declare it yet, so add
-- it here to fix `module 'async' not found`.
--
-- It also removed the bundled Telescope extension (`telescope._extensions.refactoring`),
-- so we override the extra's `config` and `<leader>rs` keymap to use the
-- built-in `select_refactor()` (vim.ui.select) instead of the missing extension.
{
"ThePrimeagen/refactoring.nvim",
dependencies = {
"lewis6991/async.nvim",
},
config = function(_, opts)
require("refactoring").setup(opts)
end,
keys = {
{
"<leader>rs",
function()
require("refactoring").select_refactor()
end,
mode = { "n", "x" },
desc = "Refactor",
},
},
},
}