From 253974506a49c47758e414c7fa4aceffd47c20e7 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Tue, 12 Nov 2013 09:45:04 -0500 Subject: [PATCH] disable vcscommand integration by default. resolves #340. --- autoload/airline/extensions/branch.vim | 2 +- doc/airline.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index f61a3da..87a7069 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -4,7 +4,7 @@ let s:has_fugitive = exists('*fugitive#head') let s:has_fugitive_detect = exists('*fugitive#detect') let s:has_lawrencium = exists('*lawrencium#statusline') -let s:has_vcscommand = exists('*VCSCommandGetStatusLine') +let s:has_vcscommand = get(g:, 'airline#extensions#branch#use_vcscommand', 0) && exists('*VCSCommandGetStatusLine') if !s:has_fugitive && !s:has_lawrencium && !s:has_vcscommand finish diff --git a/doc/airline.txt b/doc/airline.txt index 7a955b7..2816c29 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -265,12 +265,16 @@ vim-bufferline ------------------------------------- *airline-branch* fugitive.vim lawrencium +vcscommand * enable/disable fugitive/lawrencium integration > let g:airline#extensions#branch#enabled = 1 < * change the text for when no branch is detected > let g:airline#extensions#branch#empty_message = '' + +* use vcscommand.vim if available > + let g:airline#extensions#branch#use_vcscommand = 0 < ------------------------------------- *airline-syntastic* syntastic