1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00
This commit is contained in:
wsdjeg 2017-01-02 12:32:26 +08:00
parent c2ef65fea0
commit 27718e7f19
3 changed files with 9 additions and 6 deletions

View File

@ -87,11 +87,14 @@ function! SpaceVim#loadCustomConfig() abort
exe 'source ' . custom_confs[0]
endif
endfunction
""
" @public
" Load the {layer} you want, with the {opt}.
function! SpaceVim#Layer(layer, opt) abort
" Load the {layer} you want
function! SpaceVim#Layer(layer) abort
if index(g:spacevim_plugin_groups, a:layer) == -1
call add(g:spacevim_plugin_groups, a:layer)
endif
endfunction
function! SpaceVim#end() abort

View File

@ -81,7 +81,7 @@ endif
"call add(s:plugins.unite, ['ujihisa/quicklearn'])
let s:plugins.lang = [
\ ['zchee/deoplete-jedi', { 'on_ft' : 'python'}],
\ ['Shougo/neosnippet.vim', { 'on_i' : 1 , 'on_ft' : 'neosnippet'}],
\ ['Shougo/neosnippet.vim', { 'on_i' : 1 , 'on_ft' : 'neosnippet', 'loadconf' : 1}],
\ ['davidhalter/jedi-vim', { 'on_ft' : 'python'}],
\ ['m2mdas/phpcomplete-extended', { 'on_ft' : 'php'}],
\ ['groenewege/vim-less', { 'on_ft' : ['less']}],

View File

@ -64,8 +64,8 @@ twitter.
==============================================================================
FUNCTIONS *SpaceVim-functions*
SpaceVim#Layer({layer}, {opt}) *SpaceVim#Layer()*
Load the {layer} you want, with the {opt}.
SpaceVim#Layer({layer}) *SpaceVim#Layer()*
Load the {layer} you want
vim:tw=78:ts=8:ft=help:norl: