mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
28 lines
525 B
Nix
28 lines
525 B
Nix
{ 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";
|
|
};
|
|
};
|
|
}
|