Neovim: add more git keybinds

This commit is contained in:
Marko Korhonen 2024-10-17 10:04:51 +03:00
parent 5328c00cf5
commit e073807f40
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 30 additions and 3 deletions

View file

@ -7,6 +7,9 @@ return {
local gs = require("gitsigns")
gs.setup()
-- Keybinds
local opts
-- Add groups for which-key
require("which-key").add({
{ "<leader>g", group = "Git" },
@ -14,9 +17,6 @@ return {
{ "<leader>ga", group = "Add" },
})
-- Keybinds
local opts
-- Hunk navigation
k("n", "[h", gs.prev_hunk, { desc = "Previous hunk" })
k("n", "]h", gs.next_hunk, { desc = "Next hunk" })