From d61829e2b6ae9d774fcfd34bbb68e35afea25446 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sun, 24 Sep 2023 09:59:40 +0200 Subject: [PATCH] Add git push keymap --- lua/plugins/fugitive.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins/fugitive.lua b/lua/plugins/fugitive.lua index 21c50d9..c5c3da2 100644 --- a/lua/plugins/fugitive.lua +++ b/lua/plugins/fugitive.lua @@ -26,6 +26,7 @@ end vim.keymap.set("n", "gd", vim.cmd.Gdiffsplit) vim.keymap.set("n", "gc", function () vim.cmd.G("commit") end) vim.keymap.set("n", "ga", function () vim.cmd.G("commit --amend") end) +vim.keymap.set("n", "gp", function () vim.cmd.G("push") end) -- Only used if diffview is not available if not pcall(require, "diffview") then