From 3345d722af7f474132f4ac76b4cc7e7cc8935596 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 18 Jan 2017 20:52:19 +0800 Subject: [PATCH] Add doc for lang#php layer --- autoload/SpaceVim.vim | 22 ---------------------- autoload/SpaceVim/layers.vim | 12 ++++++++++++ autoload/SpaceVim/layers/lang/php.vim | 13 +++++++++++++ doc/SpaceVim.txt | 12 +----------- 4 files changed, 26 insertions(+), 33 deletions(-) create mode 100644 autoload/SpaceVim/layers.vim diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index a70131ac9..73257f382 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -224,28 +224,6 @@ function! SpaceVim#loadCustomConfig() abort endif 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 if !empty(g:spacevim_windows_leader) diff --git a/autoload/SpaceVim/layers.vim b/autoload/SpaceVim/layers.vim new file mode 100644 index 000000000..a0f7a15ae --- /dev/null +++ b/autoload/SpaceVim/layers.vim @@ -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 diff --git a/autoload/SpaceVim/layers/lang/php.vim b/autoload/SpaceVim/layers/lang/php.vim index d20a44529..cfed1359a 100644 --- a/autoload/SpaceVim/layers/lang/php.vim +++ b/autoload/SpaceVim/layers/lang/php.vim @@ -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 let plugins = [] if has('nvim') diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index b001995ac..2824f0eee 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -181,7 +181,7 @@ twitter. ============================================================================== 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 |SpaceVim-layers|. @@ -203,15 +203,5 @@ LAYERS *SpaceVim-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: