mirror of
				https://github.com/vim-airline/vim-airline.git
				synced 2025-10-31 11:44:34 +01: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_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 | ||||
|  | ||||
| @ -265,12 +265,16 @@ vim-bufferline <https://github.com/bling/vim-bufferline> | ||||
| -------------------------------------                       *airline-branch* | ||||
| fugitive.vim <https://github.com/tpope/vim-fugitive> | ||||
| lawrencium   <https://bitbucket.org/ludovicchabant/vim-lawrencium> | ||||
| vcscommand   <http://www.vim.org/scripts/script.php?script_id=90> | ||||
| 
 | ||||
| * 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 <https://github.com/scrooloose/syntastic> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user