extract tagbar

This commit is contained in:
Bailey Ling
2013-08-06 03:16:49 +00:00
parent 9c960875fe
commit 48f0e3652c
3 changed files with 23 additions and 13 deletions
+11
View File
@@ -0,0 +1,11 @@
" MIT license. Copyright (c) 2013 Bailey Ling.
" vim: ts=2 sts=2 sw=2 fdm=indent
function! airline#extensions#tagbar#apply()
let w:airline_section_x = '%(%{tagbar#currenttag("%s","")} '.g:airline_right_alt_sep.' %)'.g:airline_section_x
endfunction
function! airline#extensions#tagbar#init(ext)
call a:ext.add_statusline_funcref(function('airline#extensions#tagbar#apply'))
endfunction