prepare for bufferline highlight support
This commit is contained in:
parent
043256f96b
commit
8a2890625b
|
@ -88,10 +88,12 @@ function! s:apply_window_overrides()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#update_externals()
|
function! airline#update_externals()
|
||||||
let g:airline_externals_bufferline = g:airline_enable_bufferline && exists('g:bufferline_loaded') ? '%{bufferline#generate_string()}' : "%f%m"
|
let g:airline_externals_bufferline = g:airline_enable_bufferline && exists('*bufferline#get_status_string')
|
||||||
let g:airline_externals_syntastic = g:airline_enable_syntastic && exists('g:loaded_syntastic_plugin') ? '%{SyntasticStatuslineFlag()}' : ''
|
\ ? '%{bufferline#refresh_status()}'.bufferline#get_status_string()
|
||||||
let g:airline_externals_fugitive = g:airline_enable_fugitive ? (exists('g:loaded_fugitive') && strlen(fugitive#head()) > 0
|
\ : "%f%m"
|
||||||
\ ? g:airline_fugitive_prefix.fugitive#head() : exists('g:loaded_lawrencium') && strlen(lawrencium#statusline()) > 0
|
let g:airline_externals_syntastic = g:airline_enable_syntastic && exists('*SyntasticStatuslineFlag') ? '%{SyntasticStatuslineFlag()}' : ''
|
||||||
|
let g:airline_externals_fugitive = g:airline_enable_fugitive ? (exists('*fugitive#head') && strlen(fugitive#head()) > 0
|
||||||
|
\ ? g:airline_fugitive_prefix.fugitive#head() : exists('*lawrencium#statusline') && strlen(lawrencium#statusline()) > 0
|
||||||
\ ? g:airline_fugitive_prefix.lawrencium#statusline() : '') : ''
|
\ ? g:airline_fugitive_prefix.lawrencium#statusline() : '') : ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue