return { { "ThePrimeagen/refactoring.nvim", dependencies = { { "nvim-lua/plenary.nvim" }, { "nvim-treesitter/nvim-treesitter" }, }, config = function() require("config.refactoring") end, -- stylua: ignore keys = { -- remap to open the Telescope refactoring menu in visual mode { "R", "lua require('telescope').extensions.refactoring.refactors()", }, -- Remaps for the refactoring operations currently offered by the plugin { "rx", [[ lua require('refactoring').refactor('Extract Function')]], mode = "v", }, { "rxf", [[ lua require('refactoring').refactor('Extract Function To File')]], mode = "v", }, { "rxv", [[ lua require('refactoring').refactor('Extract Variable')]], mode = "v", }, { "ri", [[ lua require('refactoring').refactor('Inline Variable')]], mode = "v", }, }, }, }