mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-20 19:01:12 +08:00
allow warning section to be overwritten (#136).
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user