From c451eaa324fde81cf8296006379feff2b8891e07 Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Fri, 21 Jun 2024 13:23:19 +0200 Subject: [PATCH] update gitsigns config --- lua/plugins/gitsigns.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua index 1acf88c..85311c4 100644 --- a/lua/plugins/gitsigns.lua +++ b/lua/plugins/gitsigns.lua @@ -16,8 +16,8 @@ return { follow_files = true }, auto_attach = true, - attach_to_untracked = false, - current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame` + attach_to_untracked = true, + current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame` current_line_blame_opts = { virt_text = true, virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align' @@ -65,6 +65,7 @@ return { end) -- Actions + map('n', '', gs.preview_hunk) map('n', 'hs', gitsigns.stage_hunk) map('n', 'hr', gitsigns.reset_hunk) map('v', 'hs', function() gitsigns.stage_hunk { vim.fn.line('.'), vim.fn.line('v') } end) @@ -72,7 +73,7 @@ return { map('n', 'hS', gitsigns.stage_buffer) map('n', 'hu', gitsigns.undo_stage_hunk) map('n', 'hR', gitsigns.reset_buffer) - map('n', 'hp', gitsigns.preview_hunk) + --map('n', 'hp', gitsigns.preview_hunk) map('n', 'hb', function() gitsigns.blame_line { full = true } end) map('n', 'tb', gitsigns.toggle_current_line_blame) map('n', 'hd', gitsigns.diffthis)