feat: update system

This commit is contained in:
2024-06-24 19:50:16 +02:00
parent 3d91c3221e
commit eb85d22494
12 changed files with 254 additions and 135 deletions

View File

@@ -0,0 +1,27 @@
{ lib, config, ... }:
let
cfg = config.presets.remaps.paste-keep-buffer;
in
{
options.presets.remaps.paste-keep-buffer = {
enable = lib.mkEnableOption "paste in visual keeps the buffer";
};
config = lib.mkIf cfg.enable {
keymaps = [
{
key = "p";
mode = "v";
action = ''"_dP'';
}
{
key = "<leader>p";
action = ''"_dP'';
}
];
plugins.which-key = {
enable = true;
registrations."<leader>p" = "Paste Keep Buffer";
};
};
}