allow to use alternative seperators for inactive windows

closes #1236
This commit is contained in:
Christian Brabandt 2018-11-08 17:09:17 +01:00
parent a993ae5d42
commit 8c36d2b595
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 8 additions and 0 deletions

View File

@ -146,6 +146,11 @@ function! airline#update_statusline_inactive(range)
endif
call setwinvar(nr, 'airline_active', 0)
let context = { 'winnr': nr, 'active': 0, 'bufnr': winbufnr(nr) }
if get(g:, 'airline_inactive_alt_sep', 0)
call extend(context, {
\ 'left_sep': g:airline_left_alt_sep,
\ 'right_sep': g:airline_right_alt_sep }, 'keep')
endif
call s:invoke_funcrefs(context, s:inactive_funcrefs)
endfor
endfunction

View File

@ -142,6 +142,9 @@ values):
only the filename of that buffer. >
let g:airline_inactive_collapse=1
<
* Use alternative seperators for the statusline of inactive windows >
let g:airline_inactive_alt_sep=1
<
* themes are automatically selected based on the matching colorscheme. this
can be overridden by defining a value. >
let g:airline_theme='dark'