From 61f113d9d8a7865306cd8d129642e3c482ed15fd Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Thu, 24 Nov 2022 19:30:42 +0100 Subject: [PATCH] [neovim] Add new keymaps to gitsigns --- .config/nvim/lua/plugins/gitsigns.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/nvim/lua/plugins/gitsigns.lua b/.config/nvim/lua/plugins/gitsigns.lua index c696c3e..9d48799 100644 --- a/.config/nvim/lua/plugins/gitsigns.lua +++ b/.config/nvim/lua/plugins/gitsigns.lua @@ -28,5 +28,8 @@ gitsigns.setup({ map({ "n", "v" }, "hr", ":Gitsigns reset_hunk") map("n", "hp", gs.preview_hunk) map("n", "hR", gs.reset_buffer) + map('n', 'hd', gs.diffthis) + map('n', 'hj', gs.next_hunk) + map('n', 'hk', gs.prev_hunk) end, })