From 4acd1eb969e1aa39d3045014ddd5866a7877ec0e Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Sat, 20 May 2023 14:04:10 -0400 Subject: [PATCH] improve vim fugitive git keybindings --- lua/keybindings.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/keybindings.lua b/lua/keybindings.lua index 203e3e2..8b0044c 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -38,9 +38,14 @@ map('n', 'q', 'call ToggleQFList(0)', {}) -- see plugin/navigat -- GIT -- top level commands -map('n', 'gs', 'G', options) -- Show git status -map('n', 'gc', 'G commit', options) -- git commit +map('n', 'gs', 'keepalt Git', options) -- Show git status +map('n', 'gc', 'G commit -v', options) -- git commit map('n', 'gp', 'G push', {}) -- git push +map('n', 'gd', 'G diff', options) +map('n', 'gds', 'G diff --staged', options) + +-- staging +map('n', 'dp', 'diffput', options) -- merge map('n', 'gh', 'diffget //2', options) -- merge from left pane