aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/plugins/git.lua
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2024-12-31 01:06:03 +0100
committerpml68 <contact@pml68.dev>2024-12-31 01:06:03 +0100
commit57b61c138ea291591e4889ff82bf21634993aaf0 (patch)
tree844ba87c9a7531c7fd7bbcca0a7664649c1b371e /lua/pml68/plugins/git.lua
parentfeat: use tabs in Makefiles, use LSP for rust formatting (diff)
downloadnvim-57b61c138ea291591e4889ff82bf21634993aaf0.tar.gz
feat: add kexmap for Gitsigns reset_hunk
Diffstat (limited to '')
-rw-r--r--lua/pml68/plugins/git.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/pml68/plugins/git.lua b/lua/pml68/plugins/git.lua
index 38e67ea..e94c230 100644
--- a/lua/pml68/plugins/git.lua
+++ b/lua/pml68/plugins/git.lua
@@ -15,6 +15,7 @@ return {
local gs = package.loaded.gitsigns
vim.keymap.set("n", "<leader>gb", gs.blame_line, { buffer = bufnr })
+ vim.keymap.set("n", "<leader>gr", gs.reset_hunk, { buffer = bufnr })
end,
})
end