From b63351398d00d87aaa61f7bab1d693fc8398a88f Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Thu, 25 Jul 2024 22:41:09 -0700 Subject: [PATCH] feat: add keybinds for staging/resetting hunks --- lua/plugins/editor.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 2d11c4d..7b9b3c3 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -172,6 +172,18 @@ return { changedelete = { text = "▎" }, untracked = { text = "▎" }, }, + signs_staged = { + add = { text = "▎" }, + change = { text = "▎" }, + delete = { text = "" }, + topdelete = { text = "" }, + changedelete = { text = "▎" }, + }, + }, + keys = { + { "ghb", ":Gitsigns blame_line", desc = "Blame line" }, + { "ghs", ":Gitsigns stage_hunk", desc = "Stage hunk", mode = { "n", "v" } }, + { "ghr", ":Gitsigns reset_hunk", desc = "Reset hunk", mode = { "n", "v" } }, }, }, {