UPDATE
This commit is contained in:
@@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user