Made fugitive and lawrencium coexist in peace,

meaning that branches retrieved from those are now displayed side by
side. The order can be customised with g:airline#extensions#branch#vcs_priority.
The VCS name is now prepended to the branch name to be able to tell
which is which. The VSCCommand behaviour is unchanged.
Also restructured the code a little bit, and made found_fugitive_head
variable behave as its name suggests.
This commit is contained in:
namark
2016-01-29 16:11:14 +04:00
committed by Christian Brabandt
parent 7c234a0139
commit d6a42528a1
2 changed files with 57 additions and 34 deletions

View File

@@ -317,6 +317,10 @@ vcscommand <http://www.vim.org/scripts/script.php?script_id=90>
* change the text for when no branch is detected >
let g:airline#extensions#branch#empty_message = ''
<
* define the order in which the branches of different vcs systems will be
displayed on the statusline (currently only for fugitive and lawrencium) >
let g:airline#extensions#branch#vcs_priority = ["git", "mercurial"]
<
* use vcscommand.vim if available >
let g:airline#extensions#branch#use_vcscommand = 0
<