Skip to content

Commit

Permalink
fix(gitsigns): make visual mode descriptions consistent with normal m…
Browse files Browse the repository at this point in the history
…ode (nvim-lua#1266)
  • Loading branch information
sswensen authored and Fabio Strozzi committed Jan 17, 2025
1 parent ccafd2b commit dedee4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/kickstart/plugins/gitsigns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ return {
-- visual mode
map('v', '<leader>hs', function()
gitsigns.stage_hunk { vim.fn.line '.', vim.fn.line 'v' }
end, { desc = 'stage git hunk' })
end, { desc = 'git [s]tage hunk' })
map('v', '<leader>hr', function()
gitsigns.reset_hunk { vim.fn.line '.', vim.fn.line 'v' }
end, { desc = 'reset git hunk' })
end, { desc = 'git [r]eset hunk' })
-- normal mode
map('n', '<leader>hs', gitsigns.stage_hunk, { desc = 'git [s]tage hunk' })
map('n', '<leader>hr', gitsigns.reset_hunk, { desc = 'git [r]eset hunk' })
Expand Down

0 comments on commit dedee4d

Please sign in to comment.