2013-07-07 20:41:36 +08:00
|
|
|
function! airline#extensions#load()
|
2013-07-07 20:59:05 +08:00
|
|
|
let g:unite_force_overwrite_statusline = 0
|
|
|
|
autocmd FileType unite
|
|
|
|
\ let w:airline_section_a = 'Unite'
|
|
|
|
\ | let w:airline_section_b = unite#get_status_string()
|
|
|
|
\ | call airline#update_statusline(1)
|
2013-07-07 23:32:50 +08:00
|
|
|
\ | unlet w:airline_section_a | unlet w:airline_section_b
|
2013-07-07 20:59:05 +08:00
|
|
|
|
2013-07-07 20:41:36 +08:00
|
|
|
if exists('g:loaded_ctrlp') && g:loaded_ctrlp
|
|
|
|
call airline#extensions#ctrlp#load_ctrlp_hi()
|
|
|
|
let g:ctrlp_status_func = {
|
|
|
|
\ 'main': 'airline#extensions#ctrlp#ctrlp_airline',
|
|
|
|
\ 'prog': 'airline#extensions#ctrlp#ctrlp_airline_status',
|
|
|
|
\ }
|
|
|
|
endif
|
|
|
|
endfunction
|