diff --git a/autoload/SpaceVim/layers.vim b/autoload/SpaceVim/layers.vim index a16f19423..8f159c341 100644 --- a/autoload/SpaceVim/layers.vim +++ b/autoload/SpaceVim/layers.vim @@ -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: diff --git a/autoload/SpaceVim/logger.vim b/autoload/SpaceVim/logger.vim index cdfabaf08..a2f5848b1 100644 --- a/autoload/SpaceVim/logger.vim +++ b/autoload/SpaceVim/logger.vim @@ -84,6 +84,7 @@ function! SpaceVim#logger#viewLog(...) abort normal! "_dd setl nomodifiable setl buftype=nofile + setl filetype=markdown else return info endif