allow warning section to be overwritten (#136).

This commit is contained in:
Bailey Ling
2013-08-20 15:02:17 +00:00
parent e2a758e309
commit cbb9bea9db
3 changed files with 13 additions and 10 deletions

View File

@@ -1,10 +1,11 @@
" MIT License. Copyright (c) 2013 Bailey Ling.
" vim: ts=2 sts=2 sw=2 fdm=indent
" vim: et ts=2 sts=2 sw=2
function! airline#extensions#syntastic#apply()
let w:airline_section_warning = ' %#warningmsg#%{SyntasticStatuslineFlag()}'
let w:airline_section_warning = ' %{SyntasticStatuslineFlag()}'
endfunction
function! airline#extensions#syntastic#init(ext)
call a:ext.add_statusline_funcref(function('airline#extensions#syntastic#apply'))
endfunction