From ae03454361bb9e50a509823a1587fbb2dd88d3c8 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:09 +0100 Subject: refactor(nvim): drop refactoring.nvim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream broke itself today by adding require('async') without shipping lua/async.lua. I never use these mappings anyway. Removed the plugin spec, setup call, r* keymaps, and the which-key group entry. plenary.nvim stays — neogit still depends on it. Run :PackClean afterwards to prune the on-disk plugin. --- dot_config/nvim/lua/plugins/editing.lua | 34 --------------------------------- dot_config/nvim/lua/plugins/init.lua | 1 - 2 files changed, 35 deletions(-) (limited to 'dot_config/nvim/lua/plugins') diff --git a/dot_config/nvim/lua/plugins/editing.lua b/dot_config/nvim/lua/plugins/editing.lua index 5175516..836de13 100644 --- a/dot_config/nvim/lua/plugins/editing.lua +++ b/dot_config/nvim/lua/plugins/editing.lua @@ -25,37 +25,3 @@ end, { expr = true, desc = "Increment (sequential)" }) vim.keymap.set("v", "g", function() return require("dial.map").dec_gvisual() end, { expr = true, desc = "Decrement (sequential)" }) - --- refactoring.nvim -require("refactoring").setup({}) - -vim.keymap.set("x", "re", function() - require("refactoring").refactor("Extract Function") -end, { desc = "[R]efactor [E]xtract function" }) -vim.keymap.set("x", "rf", function() - require("refactoring").refactor("Extract Function To File") -end, { desc = "[R]efactor extract function to [F]ile" }) -vim.keymap.set("x", "rv", function() - require("refactoring").refactor("Extract Variable") -end, { desc = "[R]efactor extract [V]ariable" }) -vim.keymap.set("n", "rI", function() - require("refactoring").refactor("Inline Function") -end, { desc = "[R]efactor [I]nline function" }) -vim.keymap.set({ "x", "n" }, "ri", function() - require("refactoring").refactor("Inline Variable") -end, { desc = "[R]efactor [I]nline variable" }) -vim.keymap.set("n", "rb", function() - require("refactoring").refactor("Extract Block") -end, { desc = "[R]efactor extract [B]lock" }) -vim.keymap.set("n", "rB", function() - require("refactoring").refactor("Extract Block To File") -end, { desc = "[R]efactor extract [B]lock to file" }) -vim.keymap.set("n", "rp", function() - require("refactoring").debug.printf({}) -end, { desc = "[R]efactor [P]rint" }) -vim.keymap.set({ "x", "n" }, "rV", function() - require("refactoring").debug.print_var({}) -end, { desc = "[R]efactor [P]rint [V]ariable" }) -vim.keymap.set("n", "rc", function() - require("refactoring").debug.cleanup({}) -end, { desc = "[R]efactor [C]leanup" }) diff --git a/dot_config/nvim/lua/plugins/init.lua b/dot_config/nvim/lua/plugins/init.lua index 24eb70d..982e570 100644 --- a/dot_config/nvim/lua/plugins/init.lua +++ b/dot_config/nvim/lua/plugins/init.lua @@ -35,7 +35,6 @@ require("which-key").setup({ { "g", group = "[G]it" }, { "h", group = "Git [H]unk", mode = { "n", "v" } }, { "o", group = "[O]verseer" }, - { "r", group = "[R]efactor" }, { "w", group = "[W]orkspace" }, { "t", group = "[T]oggle" }, }, -- cgit v1.3.1