profile: add additional keymaps for the gitsign plugin

Added <leader>gS to stash an entire file.
Added <leader>gR to restore an entire file.
This commit is contained in:
Dmitriy Pleshevskiy 2024-06-19 00:10:50 +03:00
parent 592f9251e5
commit a26b0bd7c3
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -35,7 +35,9 @@ in
);
}
{ mode = "n"; lhs = localLeader "gs"; rhs = raw "${gs}.stage_hunk"; }
{ mode = "n"; lhs = localLeader "gS"; rhs = raw "${gs}.stage_buffer"; }
{ mode = "n"; lhs = localLeader "gr"; rhs = raw "${gs}.reset_hunk"; }
{ mode = "n"; lhs = localLeader "gR"; rhs = raw "${gs}.reset_buffer"; }
{ mode = "n"; lhs = localLeader "gu"; rhs = raw "${gs}.undo_stage_hunk"; }
{ mode = "n"; lhs = localLeader "gp"; rhs = raw "${gs}.preview_hunk"; }
{ mode = "n"; lhs = localLeader "gb"; rhs = lambda0 (call "${gs}.blame_line" { full = true; }); }