mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-30 08:04:22 +08:00
Disable fugitiveline if bufferline is activated
This fixes the conflict of both plugins redifining the 'file' (or 'path') function. Closes #1670. As fugitiveline modifies the path display and bufferline replaces it, the latter should be the plugin to be used if both are activated.
This commit is contained in:
@@ -231,6 +231,7 @@ function! airline#extensions#load()
|
||||
|
||||
if get(g:, 'airline#extensions#fugitiveline#enabled', 1)
|
||||
\ && exists('*fugitive#head')
|
||||
\ && index(loaded_ext, 'bufferline') == -1
|
||||
call airline#extensions#fugitiveline#init(s:ext)
|
||||
call add(loaded_ext, 'fugitiveline')
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user