From c656fc94d2b6f6cfff2bd9bc6cb95aff814e6536 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 30 Sep 2019 13:26:17 +0100 Subject: [PATCH] Add FAQ on diff highlight groups --- README.mkd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.mkd b/README.mkd index b3bdf53..e014a9b 100644 --- a/README.mkd +++ b/README.mkd @@ -635,6 +635,16 @@ This plugin is for showing changes between the working tree and the index (and s Your colorscheme is configuring the `SignColumn` highlight group weirdly. Please see the section above on customising the sign column. +> Why are the colours in the preview window weird? + +Probably because your colourscheme doesn't configure the `diff{Added,Changed,Removed}` highlight groups. Try this in `after/syntax/diff.vim`: + +```viml +highlight link diffAdded DiffAdd +highlight link diffChanged DiffChange +highlight link diffRemoved DiffDelete +``` + > What happens if I also use another plugin which uses signs (e.g. Syntastic)? You can configure whether GitGutter preserves or clobbers other signs using `g:gitgutter_sign_allow_clobber`. Set to `1` to clobber other signs (default on Vim >= 8.1.0614 and NeoVim >= 0.4.0) or `0` to preserve them.