Neovim: add more git keybinds

This commit is contained in:
Marko Korhonen 2024-10-17 10:04:51 +03:00
parent 4f49666198
commit 9c92e2305b
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" })