deprecate fugitive variable names in favour of scm-agnostic variable names

This commit is contained in:
Bailey Ling
2013-07-27 18:15:00 -04:00
parent 0c7687889e
commit 161daa7942
3 changed files with 18 additions and 11 deletions

View File

@@ -74,9 +74,13 @@ function! airline#update_externals()
\ ? '%{bufferline#refresh_status()}'.bufferline#get_status_string()
\ : "%f%m"
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() : '') : ''
let g:airline_externals_branch = g:airline_enable_branch
\ ? (exists('*fugitive#head') && strlen(fugitive#head()) > 0
\ ? g:airline_branch_prefix.fugitive#head()
\ : exists('*lawrencium#statusline') && strlen(lawrencium#statusline()) > 0
\ ? g:airline_branch_prefix.lawrencium#statusline()
\ : '')
\ : ''
endfunction
function! s:get_section(key)