Allow flag configuration of tagbar statusline string

This commit is contained in:
Vitor Antunes
2013-09-05 15:42:17 +01:00
parent f57b65d3b8
commit e967d09bf3
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
" MIT License. Copyright (c) 2013 Bailey Ling.
" vim: et ts=2 sts=2 sw=2
let s:flags = get(g:, 'airline#extensions#tagbar#flags', '')
" Arguments: current, sort, fname
function! airline#extensions#tagbar#get_status(...)
let builder = airline#builder#new({ 'active': a:1 })
@@ -18,7 +20,7 @@ endfunction
function! airline#extensions#tagbar#currenttag()
if get(w:, 'airline_active', 0)
return tagbar#currenttag('%s', '')
return tagbar#currenttag('%s', '', s:flags)
endif
return ''
endfunction