mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-04 19:28:46 +08:00
move tagbar definition into predefined section
This commit is contained in:
1 parent
9844f14f66
commit
5099fbf1b9
3 files changed
+5
-5
No files matched your search
@@ -84,7 +84,7 @@ function! airline#update_externals()
|
||||
\ : '')
|
||||
\ : ''
|
||||
let g:airline_externals_tagbar = g:airline_enable_tagbar && exists(':Tagbar')
|
||||
\ ? '%(%{tagbar#currenttag("%s","")} '.g:airline_right_alt_sep.'%)' : ''
|
||||
\ ? '%(%{tagbar#currenttag("%s","")} '.g:airline_right_alt_sep.' %)' : ''
|
||||
endfunction
|
||||
|
||||
function! s:getwinvar(winnr, key, ...)
|
||||
@@ -124,7 +124,7 @@ function! s:get_statusline(winnr, active)
|
||||
let sl.=l:status_color.' %f%m'
|
||||
endif
|
||||
if !s:getwinvar(a:winnr, 'airline_left_only', 0)
|
||||
let sl.='%='.g:airline_externals_tagbar
|
||||
let sl.='%='
|
||||
let sl.=' '.s:get_section(a:winnr, 'x').' '
|
||||
let sl.=l:info_sep_color
|
||||
let sl.=a:active ? g:airline_right_sep : g:airline_right_alt_sep
|
||||
|
||||
Reference in new issue
Block a user