From 00e86e4b3a79faa10a7ea42afa906d9841a4ec34 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sun, 24 Sep 2023 04:58:24 +0200 Subject: [PATCH] Add more git bindings --- lua/plugins/fugitive.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/plugins/fugitive.lua b/lua/plugins/fugitive.lua index 91fa0d9..21c50d9 100644 --- a/lua/plugins/fugitive.lua +++ b/lua/plugins/fugitive.lua @@ -24,6 +24,8 @@ local function git_status_tab() 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) -- Only used if diffview is not available if not pcall(require, "diffview") then