1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-13 15:49:11 +08:00

Fix layer load func

This commit is contained in:
wsdjeg 2017-03-08 20:39:25 +08:00
parent 8f526292eb
commit 226c70c369
2 changed files with 7 additions and 1 deletions

View File

@ -5,10 +5,15 @@
""
" Load the {layer} you want. For all the layers SpaceVim supports, see @section(layers).
function! SpaceVim#layers#load(layer) abort
function! SpaceVim#layers#load(layer, ...) abort
if index(g:spacevim_plugin_groups, a:layer) == -1
call add(g:spacevim_plugin_groups, a:layer)
endif
if a:0 > 1
for l in a:000
call SpaceVim#layers#load(l)
endfor
endif
endfunction
" vim:set et sw=2:

View File

@ -84,6 +84,7 @@ function! SpaceVim#logger#viewLog(...) abort
normal! "_dd
setl nomodifiable
setl buftype=nofile
setl filetype=markdown
else
return info
endif