customizable empty branch message. closes #121.

This commit is contained in:
Bailey Ling 2013-08-09 20:12:56 +00:00
parent 2ba7ce02ec
commit 35539b2667
3 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@ function! airline#extensions#branch#apply()
\ ? g:airline_branch_prefix.fugitive#head()
\ : exists('*lawrencium#statusline') && strlen(lawrencium#statusline()) > 0
\ ? g:airline_branch_prefix.lawrencium#statusline()
\ : ''
\ : g:airline_branch_empty_message
endfunction
function! airline#extensions#branch#init(ext)

View File

@ -46,6 +46,7 @@ values):
* enable/disable fugitive/lawrencium integration
>
let g:airline_enable_branch=1
let g:airline_branch_empty_message=''
<
* enable/disable syntastic integration

View File

@ -29,6 +29,7 @@ call s:check_defined('g:airline_detect_modified', 1)
call s:check_defined('g:airline_detect_paste', 1)
call s:check_defined('g:airline_detect_whitespace', 1)
call s:check_defined('g:airline_whitespace_symbol', '✹')
call s:check_defined('g:airline_branch_empty_message', '')
call s:check_defined('g:airline_branch_prefix', exists('g:airline_powerline_fonts')?' ':'')
call s:check_defined('g:airline_readonly_symbol', exists('g:airline_powerline_fonts')?'':'RO')
call s:check_defined('g:airline_linecolumn_prefix', exists('g:airline_powerline_fonts')?' ':':')