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

Add command for update self

This commit is contained in:
wsdjeg 2017-04-11 21:29:39 +08:00
parent 2b32ec758d
commit d6e6411d93
2 changed files with 20 additions and 5 deletions

View File

@ -166,6 +166,9 @@ function! SpaceVim#plugins#manager#update(...) abort
endif
let s:pct = 0
let s:plugins = a:0 == 0 ? sort(keys(dein#get())) : sort(copy(a:1))
if a:0 == 0
call add(s:plugins, 'SpaceVim')
endif
let s:total = len(s:plugins)
call s:set_buf_line(s:plugin_manager_buffer, 1, 'Updating plugins (' . s:pct . '/' . s:total . ')')
if has('nvim')
@ -181,9 +184,17 @@ function! SpaceVim#plugins#manager#update(...) abort
let s:start_time = reltime()
for i in range(g:spacevim_plugin_manager_max_processes)
if !empty(s:plugins)
let repo = dein#get(s:LIST.shift(s:plugins))
let reponame = s:LIST.shift(s:plugins)
let repo = dein#get(reponame)
if !empty(repo)
call s:pull(repo)
elseif reponame ==# 'SpaceVim'
let repo = {
\ 'name' : 'SpaceVim',
\ 'path' : expand('~/.SpaceVim')
\ }
call s:pull(repo)
endif
endif
endfor

View File

@ -40,10 +40,11 @@ CONTENTS *SpaceVim-contents*
17. lang#puppet.............................|SpaceVim-layer-lang-puppet|
18. lang#python.............................|SpaceVim-layer-lang-python|
19. lang#rust.................................|SpaceVim-layer-lang-rust|
20. lang#xml...................................|SpaceVim-layer-lang-xml|
21. operator...................................|SpaceVim-layer-operator|
22. shell.........................................|SpaceVim-layer-shell|
23. tmux...........................................|SpaceVim-layer-tmux|
20. lang#scala...............................|SpaceVim-layer-lang-scala|
21. lang#xml...................................|SpaceVim-layer-lang-xml|
22. operator...................................|SpaceVim-layer-operator|
23. shell.........................................|SpaceVim-layer-shell|
24. tmux...........................................|SpaceVim-layer-tmux|
6. API........................................................|SpaceVim-api|
1. cmdlinemenu................................|SpaceVim-api-cmdlinemenu|
7. FAQ........................................................|SpaceVim-faq|
@ -833,6 +834,9 @@ MAPPINGS
normal <leader>gd rust-doc
<
==============================================================================
LANG#SCALA *SpaceVim-layer-lang-scala*
==============================================================================
LANG#XML *SpaceVim-layer-lang-xml*