Corrected statusline
parent
8d3c2915af
commit
c15aef4619
|
@ -88,8 +88,7 @@ endfunction
|
|||
" Mirrors the look of a given prompted highlight group (e.g. :hi Search)
|
||||
|
||||
function! highlight#statusline()
|
||||
let l:stl = '\' . s:active_register
|
||||
return l:stl . l:stl . l:stl
|
||||
return repeat(s:active_register, 3)
|
||||
endfunction
|
||||
|
||||
|
||||
|
@ -202,7 +201,9 @@ function! highlight#activate_register(reg)
|
|||
let search = search . key . '\|'
|
||||
endfor
|
||||
let @/ = search[:-3]
|
||||
exe 'hi! link Search ' . highlight#get_group_name(a:reg)
|
||||
for l:group in g:highlight_linkage
|
||||
exe 'hi! link' l:group highlight#get_group_name(a:reg)
|
||||
endfor
|
||||
set hlsearch
|
||||
else
|
||||
let @/ = ''
|
||||
|
|
7
doc/tags
7
doc/tags
|
@ -0,0 +1,7 @@
|
|||
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
|
||||
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
|
||||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/
|
||||
!_TAG_PROGRAM_AUTHOR Universal Ctags Team //
|
||||
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/
|
||||
!_TAG_PROGRAM_URL https://ctags.io/ /official site/
|
||||
!_TAG_PROGRAM_VERSION 0.0.0 /f1de2a89/
|
|
@ -45,6 +45,19 @@ 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
|
||||
" ==============================================================================
|
||||
|
||||
|
|
Loading…
Reference in New Issue