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:
parent
f3287aa304
commit
3345d722af
@ -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)
|
||||||
|
12
autoload/SpaceVim/layers.vim
Normal file
12
autoload/SpaceVim/layers.vim
Normal 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
|
@ -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')
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user