This commit is contained in:
Daniel Weber 2024-04-18 08:30:09 -04:00
parent 1d5a0f0903
commit 66b81ee300

View File

@ -33,16 +33,16 @@ require('gitsigns').setup{
end) end)
-- Actions -- Actions
map('n', '<leader>hs', gitsigns.stage_hunk, { desc = 'stage hunk') map('n', '<leader>hs', gitsigns.stage_hunk, { desc = 'stage hunk' })
map('n', '<leader>hr', gitsigns.reset_hunk, 'reset hunk') map('n', '<leader>hr', gitsigns.reset_hunk, { desc = 'reset hunk' })
map('n', '<leader>hS', gitsigns.stage_buffer, 'stage buffer') map('n', '<leader>hS', gitsigns.stage_buffer, { desc = 'stage buffer' })
map('n', '<leader>hu', gitsigns.undo_stage_hunk, 'undo stage hunk') map('n', '<leader>hu', gitsigns.undo_stage_hunk, { desc = 'undo stage hunk' })
map('n', '<leader>hR', gitsigns.reset_buffer, 'reset buffer') map('n', '<leader>hR', gitsigns.reset_buffer, { desc = 'reset buffer' })
map('n', '<leader>hp', gitsigns.preview_hunk, 'preview hunk') map('n', '<leader>hp', gitsigns.preview_hunk, { desc = 'preview hunk' })
map('n', '<leader>hb', function() gitsigns.blame_line{full=true} end, 'hunk blame') map('n', '<leader>hb', function() gitsigns.blame_line{full=true} end, { desc = 'hunk blame' })
map('n', '<leader>tb', gitsigns.toggle_current_line_blame, 'toggle single line blame') map('n', '<leader>tb', gitsigns.toggle_current_line_blame, { desc = 'toggle single line blame' })
map('n', '<leader>hd', gitsigns.diffthis, 'hunk diff') map('n', '<leader>hd', gitsigns.diffthis, { desc = 'hunk diff' })
map('n', '<leader>hD', function() gitsigns.diffthis('~') end, 'diff deleted') map('n', '<leader>hD', function() gitsigns.diffthis('~') end, { desc = 'diff deleted' })
map('n', '<leader>td', gitsigns.toggle_deleted, 'toggle deleted') map('n', '<leader>td', gitsigns.toggle_deleted, { desc = 'toggle deleted' })
end end
} }