mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-05-03 06:20:38 +02:00
disable vcscommand integration by default. resolves #340.
This commit is contained in:
parent
f2f164bda1
commit
253974506a
@ -4,7 +4,7 @@
|
|||||||
let s:has_fugitive = exists('*fugitive#head')
|
let s:has_fugitive = exists('*fugitive#head')
|
||||||
let s:has_fugitive_detect = exists('*fugitive#detect')
|
let s:has_fugitive_detect = exists('*fugitive#detect')
|
||||||
let s:has_lawrencium = exists('*lawrencium#statusline')
|
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
|
if !s:has_fugitive && !s:has_lawrencium && !s:has_vcscommand
|
||||||
finish
|
finish
|
||||||
|
@ -265,12 +265,16 @@ vim-bufferline <https://github.com/bling/vim-bufferline>
|
|||||||
------------------------------------- *airline-branch*
|
------------------------------------- *airline-branch*
|
||||||
fugitive.vim <https://github.com/tpope/vim-fugitive>
|
fugitive.vim <https://github.com/tpope/vim-fugitive>
|
||||||
lawrencium <https://bitbucket.org/ludovicchabant/vim-lawrencium>
|
lawrencium <https://bitbucket.org/ludovicchabant/vim-lawrencium>
|
||||||
|
vcscommand <http://www.vim.org/scripts/script.php?script_id=90>
|
||||||
|
|
||||||
* enable/disable fugitive/lawrencium integration >
|
* enable/disable fugitive/lawrencium integration >
|
||||||
let g:airline#extensions#branch#enabled = 1
|
let g:airline#extensions#branch#enabled = 1
|
||||||
<
|
<
|
||||||
* change the text for when no branch is detected >
|
* change the text for when no branch is detected >
|
||||||
let g:airline#extensions#branch#empty_message = ''
|
let g:airline#extensions#branch#empty_message = ''
|
||||||
|
|
||||||
|
* use vcscommand.vim if available >
|
||||||
|
let g:airline#extensions#branch#use_vcscommand = 0
|
||||||
<
|
<
|
||||||
------------------------------------- *airline-syntastic*
|
------------------------------------- *airline-syntastic*
|
||||||
syntastic <https://github.com/scrooloose/syntastic>
|
syntastic <https://github.com/scrooloose/syntastic>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user