1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:20:03 +08:00
SpaceVim/docs/layers/lang/php.md

52 lines
1.2 KiB
Markdown
Raw Normal View History

2017-08-28 04:40:37 +08:00
---
title: "SpaceVim lang#php layer"
description: "PHP language support, including code completion, syntax lint and code runner"
2017-08-28 04:40:37 +08:00
---
2018-06-23 14:37:41 +08:00
# [Available Layers](../../) >> lang#php
2017-08-28 04:40:37 +08:00
<!-- vim-markdown-toc GFM -->
2017-12-02 23:23:58 +08:00
- [Description](#description)
2017-12-23 21:12:09 +08:00
- [Features](#features)
2018-06-23 14:37:41 +08:00
- [Install](#install)
- [Key bindings](#key-bindings)
- [Jump to definition](#jump-to-definition)
- [Running current script](#running-current-script)
2017-08-28 04:40:37 +08:00
<!-- vim-markdown-toc -->
2017-08-28 04:40:37 +08:00
## Description
2017-08-28 04:40:37 +08:00
This layer adds PHP language support to SpaceVim.
2017-12-23 21:12:09 +08:00
## Features
- auto-completion
- syntax checking
- goto definition
- reference finder
2017-12-23 21:12:09 +08:00
- lsp support (require [lsp](https://spacevim.org/layers/language-server-protocol/) layer)
2018-06-23 14:37:41 +08:00
## Install
2017-08-28 04:40:37 +08:00
2018-06-23 14:37:41 +08:00
To use this configuration layer, update custom configuration file with:
```toml
[[layers]]
name = "lang#php"
```
2017-08-28 04:40:37 +08:00
## Key bindings
2017-08-28 04:40:37 +08:00
### Jump to definition
2017-12-23 21:12:09 +08:00
| Mode | Key Bindings | Description |
| ------ | ------------ | ------------------------------------------------ |
| normal | `g d` | Jump to the definition position of cursor symbol |
### Running current script
To running a php script, you can press `SPC l r` to run current file without loss focus,
and the result will be shown in a runner buffer.