1
Fork 0

Removed g:highlight_linkage

master
Joshua Potter 2017-05-17 12:00:09 -07:00
parent c15aef4619
commit a051f8c98a
2 changed files with 1 additions and 16 deletions

View File

@ -201,9 +201,7 @@ function! highlight#activate_register(reg)
let search = search . key . '\|'
endfor
let @/ = search[:-3]
for l:group in g:highlight_linkage
exe 'hi! link' l:group highlight#get_group_name(a:reg)
endfor
exe 'hi! link Search' highlight#get_group_name(a:reg)
set hlsearch
else
let @/ = ''

View File

@ -45,19 +45,6 @@ if !exists('g:highlight_registry')
endif
" g:highlight_linkage :: [ String ] {{{2
" ------------------------------------------------------------------------------
" Provides support for adding linkage to other accent groups if desired. For
" instance, airline's statusline uses highlight group __accent_Search if using
" Search, and want to keep this updated if possible.
if !exists('g:highlight_linkage')
let g:highlight_linkage = ['Search']
else
call add(g:highlight_linkage, 'Search')
endif
" MAPPINGS: {{{1
" ==============================================================================