add option for inheritating colors from LineNr
This commit is contained in:
parent
96d8bc1777
commit
a47cb357b4
@ -159,6 +159,11 @@ Example:
|
|||||||
The highlight groups to use with line highlighting.
|
The highlight groups to use with line highlighting.
|
||||||
|
|
||||||
|
|
||||||
|
let g:signify_sign_color_inherit_from_linenr = 1
|
||||||
|
|
||||||
|
Make SignColumn use the same color as LineNr.
|
||||||
|
|
||||||
|
|
||||||
let g:signify_enable_cvs = 1
|
let g:signify_enable_cvs = 1
|
||||||
|
|
||||||
Enable CVS repo detection.
|
Enable CVS repo detection.
|
||||||
|
@ -395,6 +395,8 @@ function! s:colors_set() abort
|
|||||||
if has('gui_running')
|
if has('gui_running')
|
||||||
if exists('g:signify_sign_color_guibg')
|
if exists('g:signify_sign_color_guibg')
|
||||||
let guibg = g:signify_sign_color_guibg
|
let guibg = g:signify_sign_color_guibg
|
||||||
|
elseif exists('g:signify_sign_color_inherit_from_linenr')
|
||||||
|
let guibg = synIDattr(hlID('LineNr'), 'bg', 'gui')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists('guibg')
|
if !exists('guibg')
|
||||||
@ -436,6 +438,8 @@ function! s:colors_set() abort
|
|||||||
else
|
else
|
||||||
if exists('g:signify_sign_color_ctermbg')
|
if exists('g:signify_sign_color_ctermbg')
|
||||||
let ctermbg = g:signify_sign_color_ctermbg
|
let ctermbg = g:signify_sign_color_ctermbg
|
||||||
|
elseif exists('g:signify_sign_color_inherit_from_linenr')
|
||||||
|
let guibg = synIDattr(hlID('LineNr'), 'bg', 'cterm')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists('ctermbg')
|
if !exists('ctermbg')
|
||||||
|
Loading…
Reference in New Issue
Block a user