mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-03 18:13:25 +08:00
convert the rest to use define section.
This commit is contained in:
@@ -16,11 +16,17 @@ function! airline#extensions#tagbar#inactive_apply(...)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#tagbar#currenttag()
|
||||
if get(w:, 'airline_active', 0)
|
||||
return tagbar#currenttag('%s', '')
|
||||
endif
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#tagbar#init(ext)
|
||||
call a:ext.add_inactive_statusline_func('airline#extensions#tagbar#inactive_apply')
|
||||
let g:tagbar_status_func = 'airline#extensions#tagbar#get_status'
|
||||
|
||||
let g:airline_parts.tagbar = '%(%{get(w:,"airline_active",0) ? tagbar#currenttag("%s","") : ""} '
|
||||
\ .g:airline_right_alt_sep.' %)'
|
||||
let g:airline_parts.tagbar = 'airline#extensions#tagbar#currenttag'
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user