From 74951827df24abc314500f1e6ea1f1f1c9033335 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 20 Apr 2023 11:39:43 +0100 Subject: [PATCH] Add new keymaps for Neogit commit --- config/nvim/lua/config/dashboard.lua | 8 ++++++++ config/nvim/lua/config/init.lua | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config/nvim/lua/config/dashboard.lua b/config/nvim/lua/config/dashboard.lua index 571dfd16..7b90afa9 100644 --- a/config/nvim/lua/config/dashboard.lua +++ b/config/nvim/lua/config/dashboard.lua @@ -29,6 +29,14 @@ return { action = "Neogit", key = "g", }, + { + icon = " ", + icon_hl = "@variable", + desc = "Git commit", + group = "Label", + action = "Neogit commit", + key = "c", + }, }, }, } diff --git a/config/nvim/lua/config/init.lua b/config/nvim/lua/config/init.lua index 37c9b753..c004fd19 100644 --- a/config/nvim/lua/config/init.lua +++ b/config/nvim/lua/config/init.lua @@ -24,7 +24,8 @@ vim.keymap.set("n", "l", "Lazy") vim.keymap.set("n", "m", "Mason") vim.keymap.set("n", "s", "Dashboard") vim.keymap.set("n", "z", "ZenMode") -vim.keymap.set("n", "gg", "Neogit") +vim.keymap.set("n", "g", "Neogit") +vim.keymap.set("n", "cc", "Neogit commit") vim.keymap.set("n", "/", "ToggleTerm") vim.keymap.set("n", "tt", "ToggleTerm direction=float") vim.keymap.set({ "n", "t" }, "", "NavigatorLeft")