From c3fbaeab807df852d6a2f96af0388ab0fa23424e Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 22 May 2024 00:12:00 +0200 Subject: [PATCH] removed neogit --- lua/plugins/diffview.lua | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/lua/plugins/diffview.lua b/lua/plugins/diffview.lua index 292ffc6..eff27b4 100644 --- a/lua/plugins/diffview.lua +++ b/lua/plugins/diffview.lua @@ -1,6 +1,29 @@ return { { "sindrets/diffview.nvim", - opts = {}, + opts = { + keymaps = { + file_panel = { + { + "n", "cc", + "Git commit wincmd J", + { desc = "Commit staged changes" }, + }, + { + "n", "ca", + "Git commit --amend wincmd J", + { desc = "Amend the last commit" }, + }, + { + "n", "c", + ":Git commit ", + { desc = "Populate command line with \":Git commit \"" }, + }, + }, + } + } }, + { + "tpope/vim-fugitive" + } }