neovim: fix git restore mapping

This commit is contained in:
2023-08-31 11:22:26 +03:00
parent 2703ef3acb
commit 7bbadc003a

View File

@@ -13,7 +13,7 @@ require("gitsigns").setup({
on_attach = function(bufnr)
vim.keymap.set("n", "gn", actions.next_hunk)
vim.keymap.set("n", "gN", actions.prev_hunk)
vim.keymap.set("n", "gr", actions.reset_hunk)
vim.keymap.set({ "n", "v" }, "<leader>gr", actions.reset_hunk)
end,
})