From 041bbd24e61991fec99587b69bc6cf23f76c87ac Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 16 Feb 2024 09:52:54 +0900 Subject: [PATCH] Add shortcut for git log viewing --- home-manager/common/software/cli/nixvim-base.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home-manager/common/software/cli/nixvim-base.nix b/home-manager/common/software/cli/nixvim-base.nix index 2dad67f2..ece97090 100644 --- a/home-manager/common/software/cli/nixvim-base.nix +++ b/home-manager/common/software/cli/nixvim-base.nix @@ -57,7 +57,8 @@ (nmap "tt" ":ToggleTerm" // desc "[T]oggle Terminal") # Fugitive (nmap "gc" ":Git commit -a" // desc "[C]ommit" ) - (nmap "gp" ":Git push" // desc "[P]ush") + (nmap "gp" ":Git push" // desc "Git [p]ush") + (nmap "gP" ":Git pull" // desc "[P]ull") # Window Management (nmap "wh" ":wincmd h" // desc "Move left") (nmap "wl" ":wincmd l" // desc "Move right") @@ -168,6 +169,10 @@ action = "git_status"; desc = "Search [G]it [S]tatus"; }; + "gl" = { + action = "git_commits"; + desc = "View [G]it [L]ogs"; + }; "r" = { action = "oldfiles"; desc = "Search [R]ecently opened files by name";