mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:30:07 +08:00
Add lsp support for php
This commit is contained in:
parent
27ce4cdd74
commit
87c4d8d12e
@ -25,15 +25,19 @@
|
||||
|
||||
|
||||
function! SpaceVim#layers#lang#php#plugins() abort
|
||||
let plugins = []
|
||||
let plugins = []
|
||||
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'}])
|
||||
if SpaceVim#layers#lsp#check_filetype('php')
|
||||
call add(plugins, ['felixfbecker/php-language-server', {'on_ft' : 'php', 'build' : 'composer install && composer run-script parse-stubs'}])
|
||||
else
|
||||
call add(plugins, ['php-vim/phpcd.vim', { 'on_ft' : 'php', 'build' : ['composer', 'install']}])
|
||||
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', 'build' : ['composer', 'install']}])
|
||||
return plugins
|
||||
endif
|
||||
call add(plugins, ['lvht/phpfold.vim', { 'on_ft' : 'php', 'build' : ['composer', 'install']}])
|
||||
return plugins
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#lang#php#config() abort
|
||||
|
||||
|
||||
endfunction
|
||||
|
@ -70,6 +70,7 @@ let s:enabled_fts = []
|
||||
let s:lsp_servers = {
|
||||
\ 'javascript' : ['javascript-typescript-stdio'],
|
||||
\ 'haskell' : ['hie', '--lsp'],
|
||||
\ 'php' : ['php', g:spacevim_plugin_bundle_dir . 'repos/github.com/felixfbecker/php-language-server/bin/php-language-server.php']
|
||||
\ }
|
||||
|
||||
function! SpaceVim#layers#lsp#set_variable(var) abort
|
||||
|
Loading…
Reference in New Issue
Block a user