1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

Add doc for lang#php layer

This commit is contained in:
wsdjeg 2017-01-18 20:52:19 +08:00
parent f3287aa304
commit 3345d722af
4 changed files with 26 additions and 33 deletions

View File

@ -224,28 +224,6 @@ function! SpaceVim#loadCustomConfig() abort
endif endif
endfunction endfunction
""
" @section Layers, layers
" SpaceVim support such layers:
"
" core : core plugins for SpaceVim.
"
" autocompletion : Plugins for autocompletion,
"
" maker : syntax checker
"
" unite : unite centric work-flow
"
" lang#java : java autocompletion and syntax checker
""
" Load the {layer} you want, for all the layers SpaceVim supported, see @section(layers).
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 function! SpaceVim#end() abort
if !empty(g:spacevim_windows_leader) if !empty(g:spacevim_windows_leader)

View File

@ -0,0 +1,12 @@
""
" @section Layers, layers
" SpaceVim support such layers:
""
" Load the {layer} you want, for all the layers SpaceVim supported, see @section(layers).
function! SpaceVim#layers#load(layer) abort
if index(g:spacevim_plugin_groups, a:layer) == -1
call add(g:spacevim_plugin_groups, a:layer)
endif
endfunction

View File

@ -1,3 +1,16 @@
" lang#php :
" this layer is for php development, and it provide auto codo completion,
" and syntax check, and jump to the definition location.
"
" requirement:
" PHP 5.3+
" PCNTL Extension
" Msgpack 0.5.7+(for NeoVim) Extension or JSON(for Vim 7.4+) Extension
" Composer Project
"
function! SpaceVim#layers#lang#php#plugins() abort function! SpaceVim#layers#lang#php#plugins() abort
let plugins = [] let plugins = []
if has('nvim') if has('nvim')

View File

@ -181,7 +181,7 @@ twitter.
============================================================================== ==============================================================================
FUNCTIONS *SpaceVim-functions* FUNCTIONS *SpaceVim-functions*
SpaceVim#Layer({layer}) *SpaceVim#Layer()* SpaceVim#layers#load({layer}) *SpaceVim#layers#load()*
Load the {layer} you want, for all the layers SpaceVim supported, see Load the {layer} you want, for all the layers SpaceVim supported, see
|SpaceVim-layers|. |SpaceVim-layers|.
@ -203,15 +203,5 @@ LAYERS *SpaceVim-layers*
SpaceVim support such layers: SpaceVim support such layers:
core : core plugins for SpaceVim.
autocompletion : Plugins for autocompletion,
maker : syntax checker
unite : unite centric work-flow
lang#java : java autocompletion and syntax checker
vim:tw=78:ts=8:ft=help:norl: vim:tw=78:ts=8:ft=help:norl: