From 9912ce13a44fe7f3e9ba2a40307298d70594dd0b Mon Sep 17 00:00:00 2001 From: Cimbali Date: Sat, 3 Mar 2018 16:48:06 +0100 Subject: [PATCH] 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. --- autoload/airline/extensions.vim | 1 + doc/airline.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index d7c1195..30e733e 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -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 diff --git a/doc/airline.txt b/doc/airline.txt index baba680..8af4ece 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -406,6 +406,7 @@ vim-bufferline ------------------------------------- *airline-fugitiveline* 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. +It is deactivated by default if *airline-bufferline* is activated. * enable/disable bufferline integration > let g:airline#extensions#fugitiveline#enabled = 1