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:
parent
8f526292eb
commit
226c70c369
@ -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:
|
||||
|
@ -84,6 +84,7 @@ function! SpaceVim#logger#viewLog(...) abort
|
||||
normal! "_dd
|
||||
setl nomodifiable
|
||||
setl buftype=nofile
|
||||
setl filetype=markdown
|
||||
else
|
||||
return info
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user