From ee9c3a9eada7fe9b40236667fd56983d435e2fc6 Mon Sep 17 00:00:00 2001 From: Dennis B Date: Thu, 25 Jul 2024 15:21:07 +1000 Subject: [PATCH] fix: derive Staged*Cul highlight correctly The GitSignsStagedTopdeleteCul highlight (especially the foreground) was very hard to read. It seems the issue was that GitSignsStagedTopdeleteCul incorrectly derived from GitSignsStagedChangeCul instead of the expected GitSignsChangedeleteCul. So I think the fg_factor ended up being 0.5 of 0.5 equals .25, foreground extremely dim. Likely just a simply cut-and-paste oversight. With this change the dim problem goes away. --- lua/gitsigns/highlight.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/gitsigns/highlight.lua b/lua/gitsigns/highlight.lua index 38af84ce7..5159da5a0 100644 --- a/lua/gitsigns/highlight.lua +++ b/lua/gitsigns/highlight.lua @@ -198,8 +198,8 @@ M.hls = { { GitSignsStagedAddCul = { 'GitSignsAddCul', fg_factor = 0.5, hidden = true } }, { GitSignsStagedChangeCul = { 'GitSignsChangeCul', fg_factor = 0.5, hidden = true } }, { GitSignsStagedDeleteCul = { 'GitSignsDeleteCul', fg_factor = 0.5, hidden = true } }, - { GitSignsStagedChangedeleteCul = { 'GitSignsStagedChangeCul', fg_factor = 0.5, hidden = true } }, - { GitSignsStagedTopdeleteCul = { 'GitSignsStagedDeleteCul', fg_factor = 0.5, hidden = true } }, + { GitSignsStagedChangedeleteCul = { 'GitSignsChangedeleteCul', fg_factor = 0.5, hidden = true } }, + { GitSignsStagedTopdeleteCul = { 'GitSignsTopdeleteCul', fg_factor = 0.5, hidden = true } }, { GitSignsAddPreview = {