mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:00:05 +08:00
Add command for update self
This commit is contained in:
parent
2b32ec758d
commit
d6e6411d93
@ -166,6 +166,9 @@ function! SpaceVim#plugins#manager#update(...) abort
|
|||||||
endif
|
endif
|
||||||
let s:pct = 0
|
let s:pct = 0
|
||||||
let s:plugins = a:0 == 0 ? sort(keys(dein#get())) : sort(copy(a:1))
|
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)
|
let s:total = len(s:plugins)
|
||||||
call s:set_buf_line(s:plugin_manager_buffer, 1, 'Updating plugins (' . s:pct . '/' . s:total . ')')
|
call s:set_buf_line(s:plugin_manager_buffer, 1, 'Updating plugins (' . s:pct . '/' . s:total . ')')
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
@ -181,9 +184,17 @@ function! SpaceVim#plugins#manager#update(...) abort
|
|||||||
let s:start_time = reltime()
|
let s:start_time = reltime()
|
||||||
for i in range(g:spacevim_plugin_manager_max_processes)
|
for i in range(g:spacevim_plugin_manager_max_processes)
|
||||||
if !empty(s:plugins)
|
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)
|
if !empty(repo)
|
||||||
call s:pull(repo)
|
call s:pull(repo)
|
||||||
|
elseif reponame ==# 'SpaceVim'
|
||||||
|
let repo = {
|
||||||
|
\ 'name' : 'SpaceVim',
|
||||||
|
\ 'path' : expand('~/.SpaceVim')
|
||||||
|
\ }
|
||||||
|
call s:pull(repo)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
@ -40,10 +40,11 @@ CONTENTS *SpaceVim-contents*
|
|||||||
17. lang#puppet.............................|SpaceVim-layer-lang-puppet|
|
17. lang#puppet.............................|SpaceVim-layer-lang-puppet|
|
||||||
18. lang#python.............................|SpaceVim-layer-lang-python|
|
18. lang#python.............................|SpaceVim-layer-lang-python|
|
||||||
19. lang#rust.................................|SpaceVim-layer-lang-rust|
|
19. lang#rust.................................|SpaceVim-layer-lang-rust|
|
||||||
20. lang#xml...................................|SpaceVim-layer-lang-xml|
|
20. lang#scala...............................|SpaceVim-layer-lang-scala|
|
||||||
21. operator...................................|SpaceVim-layer-operator|
|
21. lang#xml...................................|SpaceVim-layer-lang-xml|
|
||||||
22. shell.........................................|SpaceVim-layer-shell|
|
22. operator...................................|SpaceVim-layer-operator|
|
||||||
23. tmux...........................................|SpaceVim-layer-tmux|
|
23. shell.........................................|SpaceVim-layer-shell|
|
||||||
|
24. tmux...........................................|SpaceVim-layer-tmux|
|
||||||
6. API........................................................|SpaceVim-api|
|
6. API........................................................|SpaceVim-api|
|
||||||
1. cmdlinemenu................................|SpaceVim-api-cmdlinemenu|
|
1. cmdlinemenu................................|SpaceVim-api-cmdlinemenu|
|
||||||
7. FAQ........................................................|SpaceVim-faq|
|
7. FAQ........................................................|SpaceVim-faq|
|
||||||
@ -833,6 +834,9 @@ MAPPINGS
|
|||||||
normal <leader>gd rust-doc
|
normal <leader>gd rust-doc
|
||||||
<
|
<
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
LANG#SCALA *SpaceVim-layer-lang-scala*
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
LANG#XML *SpaceVim-layer-lang-xml*
|
LANG#XML *SpaceVim-layer-lang-xml*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user