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:
parent
91f2968450
commit
0fdee1fcca
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user