Add shortcut for git log viewing
This commit is contained in:
parent
94e0f5ee0e
commit
041bbd24e6
1 changed files with 6 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue