mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: update system
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user