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 . '\|' let search = search . key . '\|'
endfor endfor
let @/ = search[:-3] let @/ = search[:-3]
for l:group in g:highlight_linkage exe 'hi! link Search' highlight#get_group_name(a:reg)
exe 'hi! link' l:group highlight#get_group_name(a:reg)
endfor
set hlsearch set hlsearch
else else
let @/ = '' let @/ = ''

View File

@ -45,19 +45,6 @@ if !exists('g:highlight_registry')
endif 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 " MAPPINGS: {{{1
" ============================================================================== " ==============================================================================