From 46be2426f5cc0e7f48dc1e71cb5f578289560bdc Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Tue, 5 Jan 2021 19:09:23 +0100 Subject: [PATCH 1/3] Add diff colors --- colors/codedark.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/colors/codedark.vim b/colors/codedark.vim index 169f591..24596ec 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -443,6 +443,10 @@ call hi('gitcommitOverflow', s:cdRed, {}, 'none', {}) call hi('gitcommitSummary', s:cdPink, {}, 'none', {}) call hi('gitcommitBlank', s:cdPink, {}, 'none', {}) +" Diff: +call hi('diffAdded', s:cdLightGreen, {}, 'none', {}) +call hi('diffRemoved', s:cdLightRed, {}, 'none', {}) + " Lua: call hi('luaFuncCall', s:cdYellow, {}, 'none', {}) call hi('luaFuncArgName', s:cdLightBlue, {}, 'none', {}) From 806424c64343e7c6917bf5907795242787b46573 Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Fri, 8 Jan 2021 11:44:06 +0100 Subject: [PATCH 2/3] Add aliases for legacy groups --- colors/codedark.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/colors/codedark.vim b/colors/codedark.vim index 24596ec..be6361f 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -169,6 +169,11 @@ call hi('VisualNOS', s:cdNone, s:cdSelection, 'none', {}) call hi('WarningMsg', s:cdOrange, s:cdBack, 'none', {}) call hi('WildMenu', s:cdNone, s:cdSelection, 'none', {}) +" Legacy groups for official git.vim and diff.vim syntax +hi! link diffAdded DiffAdd +hi! link diffChanged DiffChange +hi! link diffRemoved DiffDelete + call hi('Comment', s:cdGreen, {}, 'none', {}) call hi('Constant', s:cdBlue, {}, 'none', {}) @@ -443,10 +448,6 @@ call hi('gitcommitOverflow', s:cdRed, {}, 'none', {}) call hi('gitcommitSummary', s:cdPink, {}, 'none', {}) call hi('gitcommitBlank', s:cdPink, {}, 'none', {}) -" Diff: -call hi('diffAdded', s:cdLightGreen, {}, 'none', {}) -call hi('diffRemoved', s:cdLightRed, {}, 'none', {}) - " Lua: call hi('luaFuncCall', s:cdYellow, {}, 'none', {}) call hi('luaFuncArgName', s:cdLightBlue, {}, 'none', {}) From e1ebde7aad081200cac16658dc24acf927b8db1e Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Sat, 9 Jan 2021 17:18:43 +0100 Subject: [PATCH 3/3] Update DiffAdd color --- colors/codedark.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colors/codedark.vim b/colors/codedark.vim index be6361f..15c8f9f 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -134,7 +134,7 @@ call hi('Cursor', s:cdCursorDark, s:cdCursorLight, 'none', {}) call hi('CursorLine', {}, s:cdCursorDarkDark, 'none', {}) call hi('CursorColumn', {}, s:cdCursorDarkDark, 'none', {}) call hi('Directory', s:cdBlue, s:cdBack, 'none', {}) -call hi('DiffAdd', {}, s:cdDiffGreenDark, 'none', {}) +call hi('DiffAdd', {}, s:cdDiffGreenLight, 'none', {}) call hi('DiffChange', {}, s:cdDiffRedDark, 'none', {}) call hi('DiffDelete', {}, s:cdDiffRedLight, 'none', {}) call hi('DiffText', {}, s:cdDiffRedLight, 'none', {})