Add new keymaps for Neogit commit

This commit is contained in:
Evie Litherland-Smith 2023-04-20 11:39:43 +01:00
parent a549c57b47
commit 74951827df
2 changed files with 10 additions and 1 deletions

View file

@ -29,6 +29,14 @@ return {
action = "Neogit",
key = "g",
},
{
icon = "",
icon_hl = "@variable",
desc = "Git commit",
group = "Label",
action = "Neogit commit",
key = "c",
},
},
},
}

View file

@ -24,7 +24,8 @@ vim.keymap.set("n", "<leader>l", "<cmd>Lazy<CR>")
vim.keymap.set("n", "<leader>m", "<cmd>Mason<CR>")
vim.keymap.set("n", "<leader>s", "<cmd>Dashboard<CR>")
vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>")
vim.keymap.set("n", "<leader>gg", "<cmd>Neogit<CR>")
vim.keymap.set("n", "<leader>g", "<cmd>Neogit<CR>")
vim.keymap.set("n", "<leader>cc", "<cmd>Neogit commit<CR>")
vim.keymap.set("n", "<leader>/", "<cmd>ToggleTerm<CR>")
vim.keymap.set("n", "<leader>tt", "<cmd>ToggleTerm direction=float<CR>")
vim.keymap.set({ "n", "t" }, "<A-h>", "<CMD>NavigatorLeft<CR>")