1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 23:10:04 +08:00

Add custom func

This commit is contained in:
wsdjeg 2017-11-19 15:23:30 +08:00
parent 91f2968450
commit 0fdee1fcca

View File

@ -580,4 +580,16 @@ function! SpaceVim#layers#core#statusline#unite_mode()
return ''
endfunction
function! SpaceVim#layers#core#statusline#register_sections(name, func)
if has_key(s:registed_sections, a:name)
call SpaceVim#logger#info('statusline build-in section ' . a:name . ' has been changed!')
call extend(s:registed_sections, {a:name : a:func})
else
call extend(s:registed_sections, {a:name : a:func})
endif
endfunction
" vim:set et sw=2 cc=80: