- Notifications
You must be signed in to change notification settings - Fork 273
PHP language server
Darlan de Campos edited this page Apr 21, 2020 · 2 revisions
This is a guide on how to integrate a php language server with LanguageClient-neovim.
- nvim/vim
- nodejs and npm
Install language server, we use intelephense as the language server.
npm i intelephense -gNext we add it to the server commands/
let g:LanguageClient_serverCommands = { " other server commands... \ 'php': ['intelephense', '--stdio'], \ }In order for the server to work properly, you may need to have this configuration in your settings.json file:
{ "initializationOptions": { "storagePath": "/tmp/intelephense" } }The storagePath value will need adjustments according to your OS.