mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:10:05 +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 ''
|
return ''
|
||||||
endfunction
|
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:
|
" vim:set et sw=2 cc=80:
|
||||||
|
Loading…
Reference in New Issue
Block a user