Neovim: add more git keybinds
This commit is contained in:
parent
4f49666198
commit
9c92e2305b
2 changed files with 30 additions and 3 deletions
|
@ -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" })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue