customizable empty branch message. closes #121.
This commit is contained in:
parent
2ba7ce02ec
commit
35539b2667
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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')?' ':':')
|
||||
|
|
Loading…
Reference in New Issue