allow parts to be defined in the vimrc as overrides. resolves #284.

This commit is contained in:
Bailey Ling
2013-09-25 18:48:18 +00:00
parent c869665b16
commit e507f481a2
3 changed files with 22 additions and 5 deletions
+5 -1
View File
@@ -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)