From b6ae00b0a5d2da6dea5d726685bd4d4860b75f47 Mon Sep 17 00:00:00 2001 From: hosseintoussi Date: Sat, 26 Jan 2019 11:21:18 +0100 Subject: [PATCH 1/3] Added some git highlighting This is specially for staged and unstaged file - green and red. --- colors/codedark.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/colors/codedark.vim b/colors/codedark.vim index 1cbace3..7b6f5dd 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -343,3 +343,14 @@ call hi('texBeginEndModifier', s:cdLightBlue, {}, 'none', {}) call hi('texDocType', s:cdPink, {}, 'none', {}) call hi('texDocTypeArgs', s:cdLightBlue, {}, 'none', {}) +" Git: +call hi('gitcommitHeader', s:cdGray, {}, 'none', {}) +call hi('gitcommitOnBranch', s:cdGray, {}, 'none', {}) +call hi('gitcommitBranch', s:cdPink, {}, 'none', {}) +call hi('gitcommitComment', s:cdGray, {}, 'none', {}) +call hi('gitcommitSelectedType', s:cdGreen, {}, 'none', {}) +call hi('gitcommitSelectedFile', s:cdGreen, {}, 'none', {}) +call hi('gitcommitDiscardedType', s:cdRed, {}, 'none', {}) +call hi('gitcommitDiscardedFile', s:cdRed, {}, 'none', {}) +call hi('gitcommitOverflow', s:cdRed, {}, 'none', {}) +call hi('gitcommitBlank', {}, {}, 'none', {}) From 979e41e24df60a42d2243dcd9500068e6668b7da Mon Sep 17 00:00:00 2001 From: hosseintoussi Date: Sat, 26 Jan 2019 11:22:08 +0100 Subject: [PATCH 2/3] setting gitSummary to no color --- colors/codedark.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/colors/codedark.vim b/colors/codedark.vim index 7b6f5dd..076a9af 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -353,4 +353,5 @@ call hi('gitcommitSelectedFile', s:cdGreen, {}, 'none', {}) call hi('gitcommitDiscardedType', s:cdRed, {}, 'none', {}) call hi('gitcommitDiscardedFile', s:cdRed, {}, 'none', {}) call hi('gitcommitOverflow', s:cdRed, {}, 'none', {}) +call hi('gitcommitSummary', {}, {}, 'none', {}) call hi('gitcommitBlank', {}, {}, 'none', {}) From 937d353b010ef5643087bc3583a55bcae3de461d Mon Sep 17 00:00:00 2001 From: hosseintoussi Date: Sun, 31 Mar 2019 20:47:44 +0200 Subject: [PATCH 3/3] explicitly setting colors for summary and blank in some cases the colors get mixed up, and this commit fixes that --- colors/codedark.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/colors/codedark.vim b/colors/codedark.vim index 076a9af..c8b8dd6 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -353,5 +353,6 @@ call hi('gitcommitSelectedFile', s:cdGreen, {}, 'none', {}) call hi('gitcommitDiscardedType', s:cdRed, {}, 'none', {}) call hi('gitcommitDiscardedFile', s:cdRed, {}, 'none', {}) call hi('gitcommitOverflow', s:cdRed, {}, 'none', {}) -call hi('gitcommitSummary', {}, {}, 'none', {}) -call hi('gitcommitBlank', {}, {}, 'none', {}) +call hi('gitcommitSummary', s:cdPink, {}, 'none', {}) +call hi('gitcommitBlank', s:cdPink, {}, 'none', {}) +