From 8d973444177ec498359f13f9f69d6bcb3df43960 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Sun, 14 Nov 2021 19:17:20 -0500 Subject: [PATCH] Add merge keybindings --- lua/keybindings.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/keybindings.lua b/lua/keybindings.lua index 0681cbb..361c1ec 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -42,11 +42,16 @@ map('n', 'k', 'lprevzz', options) -- Go to previous item in glo -- Toggle the window if there are items in the qfixlist; allow recursive map('n', 'q', 'call ToggleQFList(0)', {}) -- see plugin/navigation.vim for ToggleQFList definition --- git +-- GIT +-- top level commands map('n', 'gs', 'G', options) -- Show git status map('n', 'gc', 'G commit', options) -- git commit map('n', 'gp', 'G push', {}) -- git push +-- merge +map('n', 'gh', 'diffget //3', options) -- merge from left pane +map('n', 'gl', 'diffget //2', options) -- merge from right pane + -- LSP -- Use an on_attach function to only map the following keys -- after the language server attaches to the current buffer