diff --git a/README.md b/README.md index f2eef9989..409e3b0a7 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ - [go support](#go-support) - lua support - perl support - - php support + - [php support](#php-support) - rust support - [Unite centric work-flow](#unite-centric-work-flow) - [Neovim centric - Dark powered mode](#neovim-centric---dark-powered-mode-of-spacevim) @@ -154,6 +154,10 @@ git clone https://github.com/SpaceVim/SpaceVim.git AppData\Local\nvim 2. syntax check: ![2017-02-02_1358x720](https://cloud.githubusercontent.com/assets/13142418/22537883/36de7b5e-e949-11e6-866f-73c48e8f59aa.png) +###### php support +1. code completion: + [![asciicast](https://asciinema.org/a/4dzyyjymrguylqt21igxlhhqx.png)](https://asciinema.org/a/4dzyyjymrguylqt21igxlhhqx) + ##### Neovim centric - Dark powered mode of SpaceVim. By default, SpaceVim use these dark powered plugins: @@ -294,8 +298,8 @@ Name | Description [javascript-indent] | Javascript indent script [tern] | Provides Tern-based JavaScript editing support [php] | Up-to-date PHP syntax file +[phpcd] | PHP Completion Daemon for Vim/NeoVim [phpfold] | PHP folding -[phpcomplete] | Improved PHP omnicompletion [phpindent] | PHP official indenting [phpspec] | PhpSpec integration @@ -674,8 +678,8 @@ If you get any issues, please open an issue with the ISSUE_TEMPLATE. It is usefu [javascript-indent]: https://github.com/jiangmiao/simple-javascript-indenter [tern]: https://github.com/marijnh/tern_for_vim [php]: https://github.com/StanAngeloff/php.vim -[phpfold]: https://github.com/rayburgemeestre/phpfolding.vim -[phpcomplete]: https://github.com/shawncplus/phpcomplete.vim +[phpfold]: https://github.com/lvht/phpfold.vim +[phpcd]: https://github.com/lvht/phpcd.vim [phpindent]: https://github.com/2072/PHP-Indenting-for-VIm [phpspec]: https://github.com/rafi/vim-phpspec [vimfiler]: https://github.com/Shougo/vimfiler.vim diff --git a/autoload/SpaceVim/layers/lang/php.vim b/autoload/SpaceVim/layers/lang/php.vim index bc78b3ae7..33a0fe49b 100644 --- a/autoload/SpaceVim/layers/lang/php.vim +++ b/autoload/SpaceVim/layers/lang/php.vim @@ -18,6 +18,10 @@ function! SpaceVim#layers#lang#php#plugins() abort let plugins = [] call add(plugins, ['php-vim/phpcd.vim', { 'on_ft' : 'php'}]) + call add(plugins, ['StanAngeloff/php.vim', { 'on_ft' : 'php'}]) + call add(plugins, ['2072/PHP-Indenting-for-VIm', { 'on_ft' : 'php'}]) + call add(plugins, ['rafi/vim-phpspec', { 'on_ft' : 'php'}]) + call add(plugins, ['lvht/phpfold.vim', { 'on_ft' : 'php'}]) return plugins endfunction