diff --git a/lua/plugins/git.lua b/lua/plugins/git.lua index 2ff2492..65f757a 100644 --- a/lua/plugins/git.lua +++ b/lua/plugins/git.lua @@ -33,6 +33,10 @@ return { { buffer = bufnr, desc = 'Toggle [G]it Line [B]lame' }) vim.keymap.set('n', 'gu', require('gitsigns').reset_hunk, { buffer = bufnr, desc = 'Toggle [G]it [U]ndo (Reset) Hunk' }) + vim.keymap.set('n', 'gs', require('gitsigns').stage_hunk, + { buffer = bufnr, desc = 'Toggle [G]it [S]tage Hunk' }) + vim.keymap.set('n', 'gr', require('gitsigns').undo_stage_hunk, + { buffer = bufnr, desc = 'Toggle [G]it [R]eset (Undo previous) Hunk' }) end }, {