Add shortcut for git log viewing

This commit is contained in:
albert 2024-02-16 09:52:54 +09:00
parent 94e0f5ee0e
commit 041bbd24e6
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A

View file

@ -57,7 +57,8 @@
(nmap "<leader>tt" ":ToggleTerm<CR>" // desc "[T]oggle Terminal") (nmap "<leader>tt" ":ToggleTerm<CR>" // desc "[T]oggle Terminal")
# Fugitive # Fugitive
(nmap "<leader>gc" ":Git commit -a<CR>" // desc "[C]ommit" ) (nmap "<leader>gc" ":Git commit -a<CR>" // desc "[C]ommit" )
(nmap "<leader>gp" ":Git push<CR>" // desc "[P]ush") (nmap "<leader>gp" ":Git push<CR>" // desc "Git [p]ush")
(nmap "<leader>gP" ":Git pull<CR>" // desc "[P]ull")
# Window Management # Window Management
(nmap "<leader>wh" ":wincmd h<CR>" // desc "Move left") (nmap "<leader>wh" ":wincmd h<CR>" // desc "Move left")
(nmap "<leader>wl" ":wincmd l<CR>" // desc "Move right") (nmap "<leader>wl" ":wincmd l<CR>" // desc "Move right")
@ -168,6 +169,10 @@
action = "git_status"; action = "git_status";
desc = "Search [G]it [S]tatus"; desc = "Search [G]it [S]tatus";
}; };
"<leader>gl" = {
action = "git_commits";
desc = "View [G]it [L]ogs";
};
"<leader>r" = { "<leader>r" = {
action = "oldfiles"; action = "oldfiles";
desc = "Search [R]ecently opened files by name"; desc = "Search [R]ecently opened files by name";