1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 23:08:01 +00:00

[neovim] Add new keymaps to gitsigns

This commit is contained in:
Daniel Carrillo 2022-11-24 19:30:42 +01:00
parent 6a49395208
commit 61f113d9d8
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16

View File

@ -28,5 +28,8 @@ gitsigns.setup({
map({ "n", "v" }, "<leader>hr", ":Gitsigns reset_hunk<CR>") map({ "n", "v" }, "<leader>hr", ":Gitsigns reset_hunk<CR>")
map("n", "<leader>hp", gs.preview_hunk) map("n", "<leader>hp", gs.preview_hunk)
map("n", "<leader>hR", gs.reset_buffer) map("n", "<leader>hR", gs.reset_buffer)
map('n', '<leader>hd', gs.diffthis)
map('n', '<leader>hj', gs.next_hunk)
map('n', '<leader>hk', gs.prev_hunk)
end, end,
}) })