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 `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 = { { "rs", function() require("refactoring").select_refactor() end, mode = { "n", "x" }, desc = "Refactor", }, }, }, }