Allow highlight groups overriding

The [default] argument is used for setting the default highlighting for a group. If highlighting has already been specified for the group the command will be ignored. Also when there is an existing link.
This commit is contained in:
Dario Sneidermanis 2013-08-17 20:57:41 -03:00
parent b53043de80
commit 0bde67c6c8

View File

@ -11,13 +11,13 @@ let s:sign_change = get(g:, 'signify_sign_change', '!')
" Function: #setup {{{1 " Function: #setup {{{1
function! sy#highlight#setup() abort function! sy#highlight#setup() abort
highlight link SignifyLineAdd DiffAdd highlight default link SignifyLineAdd DiffAdd
highlight link SignifyLineChange DiffChange highlight default link SignifyLineChange DiffChange
highlight link SignifyLineDelete DiffDelete highlight default link SignifyLineDelete DiffDelete
highlight link SignifySignAdd DiffAdd highlight default link SignifySignAdd DiffAdd
highlight link SignifySignChange DiffChange highlight default link SignifySignChange DiffChange
highlight link SignifySignDelete DiffDelete highlight default link SignifySignDelete DiffDelete
endfunction endfunction
" Function: #line_enable {{{1 " Function: #line_enable {{{1