mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2026-05-19 14:59:35 +08:00
allow parts to be defined in the vimrc as overrides. resolves #284.
This commit is contained in:
@@ -7,7 +7,11 @@ let s:parts = {}
|
||||
|
||||
function! airline#parts#define(key, config)
|
||||
let s:parts[a:key] = get(s:parts, a:key, {})
|
||||
call extend(s:parts[a:key], a:config)
|
||||
if exists('g:airline#init#initializing_sections')
|
||||
call extend(s:parts[a:key], a:config, 'keep')
|
||||
else
|
||||
call extend(s:parts[a:key], a:config, 'force')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! airline#parts#define_function(key, name)
|
||||
|
||||
Reference in New Issue
Block a user