From 147f72e431eff5c20042b21fa864024182237e9e Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Sun, 14 Nov 2021 18:57:07 -0500 Subject: [PATCH] Add vim-fugitive git keybindings --- lua/keybindings.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/keybindings.lua b/lua/keybindings.lua index e9094a2..0681cbb 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -43,7 +43,9 @@ map('n', 'k', 'lprevzz', options) -- Go to previous item in glo map('n', 'q', 'call ToggleQFList(0)', {}) -- see plugin/navigation.vim for ToggleQFList definition -- git -map('n', 'gs', 'G', options) +map('n', 'gs', 'G', options) -- Show git status +map('n', 'gc', 'G commit', options) -- git commit +map('n', 'gp', 'G push', {}) -- git push -- LSP -- Use an on_attach function to only map the following keys