From 66b81ee300c7a2461270774486b9573b6d9033e9 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Thu, 18 Apr 2024 08:30:09 -0400 Subject: [PATCH] Bug fix --- after/plugin/git_stuff.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/after/plugin/git_stuff.lua b/after/plugin/git_stuff.lua index 9f3bed2..91c3d28 100644 --- a/after/plugin/git_stuff.lua +++ b/after/plugin/git_stuff.lua @@ -33,16 +33,16 @@ require('gitsigns').setup{ end) -- Actions - map('n', 'hs', gitsigns.stage_hunk, { desc = 'stage hunk') - map('n', 'hr', gitsigns.reset_hunk, 'reset hunk') - map('n', 'hS', gitsigns.stage_buffer, 'stage buffer') - map('n', 'hu', gitsigns.undo_stage_hunk, 'undo stage hunk') - map('n', 'hR', gitsigns.reset_buffer, 'reset buffer') - map('n', 'hp', gitsigns.preview_hunk, 'preview hunk') - map('n', 'hb', function() gitsigns.blame_line{full=true} end, 'hunk blame') - map('n', 'tb', gitsigns.toggle_current_line_blame, 'toggle single line blame') - map('n', 'hd', gitsigns.diffthis, 'hunk diff') - map('n', 'hD', function() gitsigns.diffthis('~') end, 'diff deleted') - map('n', 'td', gitsigns.toggle_deleted, 'toggle deleted') + map('n', 'hs', gitsigns.stage_hunk, { desc = 'stage hunk' }) + map('n', 'hr', gitsigns.reset_hunk, { desc = 'reset hunk' }) + map('n', 'hS', gitsigns.stage_buffer, { desc = 'stage buffer' }) + map('n', 'hu', gitsigns.undo_stage_hunk, { desc = 'undo stage hunk' }) + map('n', 'hR', gitsigns.reset_buffer, { desc = 'reset buffer' }) + map('n', 'hp', gitsigns.preview_hunk, { desc = 'preview hunk' }) + map('n', 'hb', function() gitsigns.blame_line{full=true} end, { desc = 'hunk blame' }) + map('n', 'tb', gitsigns.toggle_current_line_blame, { desc = 'toggle single line blame' }) + map('n', 'hd', gitsigns.diffthis, { desc = 'hunk diff' }) + map('n', 'hD', function() gitsigns.diffthis('~') end, { desc = 'diff deleted' }) + map('n', 'td', gitsigns.toggle_deleted, { desc = 'toggle deleted' }) end }