From 57b61c138ea291591e4889ff82bf21634993aaf0 Mon Sep 17 00:00:00 2001 From: pml68 Date: Tue, 31 Dec 2024 01:06:03 +0100 Subject: feat: add kexmap for Gitsigns reset_hunk --- lua/pml68/plugins/git.lua | 1 + lua/pml68/plugins/guard.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/pml68/plugins') 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", "gb", gs.blame_line, { buffer = bufnr }) + vim.keymap.set("n", "gr", gs.reset_hunk, { buffer = bufnr }) end, }) end diff --git a/lua/pml68/plugins/guard.lua b/lua/pml68/plugins/guard.lua index 1cfbbf2..8f0ddd0 100644 --- a/lua/pml68/plugins/guard.lua +++ b/lua/pml68/plugins/guard.lua @@ -20,7 +20,7 @@ return { }) vim.g.guard_config = { fmt_on_save = true, - lsp_as_default_formatter = true + lsp_as_default_formatter = true, } end } -- cgit v1.2.3