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')
|
||||||
@ -408,7 +410,7 @@ function! s:colors_set() abort
|
|||||||
if empty(guibg) || guibg < 0
|
if empty(guibg) || guibg < 0
|
||||||
exe 'hi SignifyAdd gui=bold guifg='. guifg_add
|
exe 'hi SignifyAdd gui=bold guifg='. guifg_add
|
||||||
else
|
else
|
||||||
exe 'hi SignifyAdd gui=bold guifg='. guifg_add .' guibg='. guibg
|
exe 'hi SignifyAdd gui=bold guifg='. guifg_add .' guibg='. guibg
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -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')
|
||||||
@ -449,7 +453,7 @@ function! s:colors_set() abort
|
|||||||
if empty(ctermbg) || ctermbg < 0
|
if empty(ctermbg) || ctermbg < 0
|
||||||
exe 'hi SignifyAdd cterm=bold ctermfg='. ctermfg_add
|
exe 'hi SignifyAdd cterm=bold ctermfg='. ctermfg_add
|
||||||
else
|
else
|
||||||
exe 'hi SignifyAdd cterm=bold ctermfg='. ctermfg_add .' ctermbg='. ctermbg
|
exe 'hi SignifyAdd cterm=bold ctermfg='. ctermfg_add .' ctermbg='. ctermbg
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user