bind :%y and :%y+

This commit is contained in:
2025-02-19 14:02:01 +02:00
parent a39eb22e24
commit f6e966a790
2 changed files with 24 additions and 4 deletions

View File

@ -422,6 +422,26 @@
desc = "Copy to system clipboard";
};
}
{
mode = [
"n"
];
key = "<leader>%y";
action = ":%y<CR>";
options = {
desc = "Yank the entire file contents";
};
}
{
mode = [
"n"
];
key = "<leader>%Y";
action = ":%y+<CR>";
options = {
desc = "Copy file contents to system clipboard";
};
}
{
mode = [

6
flake.lock generated
View File

@ -251,11 +251,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1737385899,
"narHash": "sha256-/zyvdstDpPhc5lhFMtKgyQdU2oXGXDb0cg4BY91NKvg=",
"lastModified": 1739527837,
"narHash": "sha256-dsb5iSthp5zCWhdV0aXPunFSCkS0pCvRXMMgTEFjzew=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "115994f18e439a1cca9cdaaf15c004870256814d",
"rev": "a39e0a651657046f3b936d842147fa51523b6818",
"type": "github"
},
"original": {