2013-08-11 23:24:08 +08:00
|
|
|
" MIT License. Copyright (c) 2013 Bailey Ling.
|
2013-08-20 23:02:17 +08:00
|
|
|
" vim: et ts=2 sts=2 sw=2
|
2013-08-06 10:56:30 +08:00
|
|
|
|
2013-08-21 23:14:12 +08:00
|
|
|
function! airline#extensions#syntastic#apply(...)
|
|
|
|
let w:airline_section_warning = get(w:, 'airline_section_warning', '')
|
2013-08-20 23:02:17 +08:00
|
|
|
let w:airline_section_warning = ' %{SyntasticStatuslineFlag()}'
|
2013-08-06 10:56:30 +08:00
|
|
|
endfunction
|
2013-08-07 09:42:32 +08:00
|
|
|
|
|
|
|
function! airline#extensions#syntastic#init(ext)
|
|
|
|
call a:ext.add_statusline_funcref(function('airline#extensions#syntastic#apply'))
|
|
|
|
endfunction
|
2013-08-20 23:02:17 +08:00
|
|
|
|