Merge pull request #1677 from Cimbali/master

Disable fugitiveline if bufferline is activated
This commit is contained in:
Christian Brabandt 2018-03-06 09:22:09 +01:00 committed by GitHub
commit 78c4438469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,7 @@ function! airline#extensions#load()
if get(g:, 'airline#extensions#fugitiveline#enabled', 1) if get(g:, 'airline#extensions#fugitiveline#enabled', 1)
\ && exists('*fugitive#head') \ && exists('*fugitive#head')
\ && index(loaded_ext, 'bufferline') == -1
call airline#extensions#fugitiveline#init(s:ext) call airline#extensions#fugitiveline#init(s:ext)
call add(loaded_ext, 'fugitiveline') call add(loaded_ext, 'fugitiveline')
endif endif

View File

@ -406,6 +406,7 @@ vim-bufferline <https://github.com/bling/vim-bufferline>
------------------------------------- *airline-fugitiveline* ------------------------------------- *airline-fugitiveline*
This extension hides the fugitive://**// part of the buffer names, to only This extension hides the fugitive://**// part of the buffer names, to only
show the file name as if it were in the current working tree. show the file name as if it were in the current working tree.
It is deactivated by default if *airline-bufferline* is activated.
* enable/disable bufferline integration > * enable/disable bufferline integration >
let g:airline#extensions#fugitiveline#enabled = 1 let g:airline#extensions#fugitiveline#enabled = 1