local refactoring = require "refactoring" -- TODO: add keymaps - https://github.com/ThePrimeagen/refactoring.nvim#configuration-for-refactoring-operations refactoring.setup {} local opts = { silent = true } vim.keymap.set("n", "ri", "lua require 'refactoring'.refactor 'Inline Variable'", opts) vim.keymap.set("v", "re", "lua require 'refactoring'.refactor 'Extract Function'", opts) vim.keymap.set("v", "ri", "lua require 'refactoring'.refactor 'Inline Variable'", opts) vim.keymap.set("v", "rv", "lua require 'refactoring'.refactor 'Extract Variable'", opts)