mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:20:05 +08:00
Update php layer document
This commit is contained in:
parent
e2f4fbb6a3
commit
20ed67388e
@ -41,6 +41,10 @@ endfunction
|
||||
function! SpaceVim#layers#lang#php#config() abort
|
||||
call SpaceVim#mapping#space#regesit_lang_mappings('php',
|
||||
\ funcref('s:on_ft'))
|
||||
if SpaceVim#layers#lsp#check_filetype('php')
|
||||
call SpaceVim#mapping#gd#add('php',
|
||||
\ function('SpaceVim#lsp#go_to_def'))
|
||||
endif
|
||||
|
||||
endfunction
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: "This layer adds PHP language support to SpaceVim"
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [Description](#description)
|
||||
- [Features](#features)
|
||||
- [Layer Installation](#layer-installation)
|
||||
- [Requirement](#requirement)
|
||||
|
||||
@ -17,9 +18,17 @@ description: "This layer adds PHP language support to SpaceVim"
|
||||
|
||||
This layer adds PHP language support to SpaceVim.
|
||||
|
||||
## Features
|
||||
|
||||
- auto-completion
|
||||
- syntax checking
|
||||
- goto definition
|
||||
- refernce finder
|
||||
- lsp support (require [lsp](https://spacevim.org/layers/language-server-protocol/) layer)
|
||||
|
||||
## Layer Installation
|
||||
|
||||
To use this configuration layer, add `SPLayer 'lang#php'` to your custom configuration file.
|
||||
To use this configuration layer, add `call SpaceVim#layers#load('lang#php')` to your custom configuration file.
|
||||
|
||||
### Requirement
|
||||
|
||||
@ -27,3 +36,4 @@ To use this configuration layer, add `SPLayer 'lang#php'` to your custom configu
|
||||
2. [PCNTL](http://php.net/manual/en/book.pcntl.php) Extension
|
||||
3. [Msgpack 0.5.7+(for NeoVim)](https://github.com/msgpack/msgpack-php) Extension or [JSON(for Vim 7.4+)](http://php.net/manual/en/intro.json.php) Extension
|
||||
4. [Composer](https://getcomposer.org/) Project
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user