airblade/vim-gitgutter — pull request #38 by vaz (2013-03-06 23:33:31+00:00)
Title: #32 Try to guess what colour to set the SignColumn

I was playing around seeing how "intelligently" I could guess colour settings for the SignColumn. This seems to work well, but it might be overkill? Haha.

Adds a new option, `g:gitgutter_fix_bg`

If set to `1`, it will try to steal the colour scheme of the user's
numberline (`LineNr`) if they currently have it turned on, otherwise will try to set
it based on `&background`.

If set to `'light'` or `'dark'` it will try
to set it as if `&background` were set to that (even if it's not).
If it steals the highlighting from `LineNr`, it tries to figure
out if it seems light or dark. It uses this to choose a brighter
or darker palette for the sign symbols.

If set to `0`, nothing happens. Default is currently `1`, to make it more
likely that the thing "just works".