Do not set background on existing GitGutter* highlights unless requested

If GitGutter* highlight groups already exist, they were declared
deliberately (either by the colorscheme maintainer or the user).  So do
not adjust them.

However if you would like to make the signs' backgrounds match the sign
column, you can do this:

    let g:gitgutter_set_sign_backgrounds = 1
This commit is contained in:
Andy Stewart
2020-04-30 19:43:02 +01:00
parent 0da302c28a
commit 76d1cf609d
4 changed files with 22 additions and 11 deletions

View File

@@ -52,6 +52,7 @@ if (has('nvim-0.4.0') || exists('*sign_place')) && !exists('g:gitgutter_sign_all
endif
call s:set('g:gitgutter_sign_allow_clobber', 0)
call s:obsolete('g:gitgutter_override_sign_column_highlight')
call s:set('g:gitgutter_set_sign_backgrounds', 0)
call s:set('g:gitgutter_sign_added', '+')
call s:set('g:gitgutter_sign_modified', '~')
call s:set('g:gitgutter_sign_removed', '_')