mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-07 20:54:26 +08:00
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:
committed by
Christian Brabandt
parent
7c234a0139
commit
d6a42528a1
@@ -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
|
||||
<
|
||||
|
||||
Reference in New Issue
Block a user