Update vim-airline
This commit is contained in:
parent
9e5999652c
commit
ddb39ef172
3 changed files with 12 additions and 0 deletions
|
@ -161,6 +161,11 @@ function! s:section_is_empty(self, content)
|
||||||
if get(g:, 'airline_skip_empty_sections', 0) == 0
|
if get(g:, 'airline_skip_empty_sections', 0) == 0
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" only check, if airline#skip_empty_sections == 1
|
||||||
|
if get(w:, 'airline_skip_empty_sections', 0) == 0
|
||||||
|
return 0
|
||||||
|
endif
|
||||||
" assume accents sections to be never empty
|
" assume accents sections to be never empty
|
||||||
" (avoides, that on startup the mode message becomes empty)
|
" (avoides, that on startup the mode message becomes empty)
|
||||||
if match(a:content, '%#__accent_[^#]*#.*__restore__#') > -1
|
if match(a:content, '%#__accent_[^#]*#.*__restore__#') > -1
|
||||||
|
|
|
@ -19,6 +19,7 @@ endfunction
|
||||||
|
|
||||||
function! airline#extensions#denite#apply(...)
|
function! airline#extensions#denite#apply(...)
|
||||||
if &ft == 'denite'
|
if &ft == 'denite'
|
||||||
|
let w:airline_skip_empty_sections = 0
|
||||||
call a:1.add_section('airline_a', ' Denite %{airline#extensions#denite#check_denite_mode('.a:2['bufnr'].')}')
|
call a:1.add_section('airline_a', ' Denite %{airline#extensions#denite#check_denite_mode('.a:2['bufnr'].')}')
|
||||||
call a:1.add_section('airline_c', ' %{denite#get_status_sources()}')
|
call a:1.add_section('airline_c', ' %{denite#get_status_sources()}')
|
||||||
call a:1.split()
|
call a:1.split()
|
||||||
|
|
|
@ -148,6 +148,12 @@ values):
|
||||||
>
|
>
|
||||||
let g:airline_skip_empty_sections = 1
|
let g:airline_skip_empty_sections = 1
|
||||||
<
|
<
|
||||||
|
|
||||||
|
This variable can be overriden by setting a window-local variable with
|
||||||
|
the same name (in the correct window):
|
||||||
|
>
|
||||||
|
let w:airline_skip_empty_sections = 0
|
||||||
|
<
|
||||||
==============================================================================
|
==============================================================================
|
||||||
COMMANDS *airline-commands*
|
COMMANDS *airline-commands*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue