mirror of
https://github.com/Tilo-K/neovim-config.git
synced 2026-10-18 06:49:50 +00:00
fix(gitsigns): make visual mode descriptions consistent with normal mode (#1266)
This commit is contained in:
1 parent
bcdb4cd252
commit
de44f49101
1 file changed
+2
-2
@@ -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' })
|
||||
|
||||
Reference in new issue
Block a user