This commit is contained in:
Oliver Davies 2025-06-12 13:00:10 +01:00
parent 9b54b177af
commit 77bce04e39
27 changed files with 2 additions and 2 deletions

View file

@ -1,47 +0,0 @@
{ config, lib, ... }:
{
plugins.refactoring = {
enable = true;
enableTelescope = true;
};
keymaps =
lib.mkIf config.plugins.refactoring.enable ([
{
key = "<leader>ri";
action = "<cmd>Refactor inline_var<CR>";
mode = "n";
}
{
key = "<leader>re";
action = "<cmd>Refactor extract<CR>";
mode = "x";
}
{
key = "<leader>ri";
action = "<cmd>Refactor inline_var<CR>";
mode = "x";
}
{
key = "<leader>rv";
action = "<cmd>Refactor extract_var<CR>";
mode = "x";
}
]
++ lib.optionals (config.plugins.refactoring.enable && config.plugins.refactoring.enableTelescope) [
{
mode = "n";
key = "<leader>rR";
action.__raw = ''
function()
require('telescope').extensions.refactoring.refactors()
end
'';
options.silent = true;
}
]);
}