mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-09-04 22:06:56 +08:00
define default statusline items with empty contents.
This commit is contained in:
@@ -20,6 +20,12 @@ function! airline#parts#define_raw(key, raw)
|
||||
call airline#parts#define(a:key, { 'raw': a:raw })
|
||||
endfunction
|
||||
|
||||
function! airline#parts#define_empty(keys)
|
||||
for key in a:keys
|
||||
call airline#parts#define_raw(key, '')
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
function! airline#parts#get(key)
|
||||
return get(s:parts, a:key, {})
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user