From 2fb791e910539b32f2e55ef5df85c196d3c1cc33 Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Mon, 25 Jun 2018 14:59:54 -0700 Subject: [PATCH] Branch for testing with vim-lsp --- ftplugin/php.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ftplugin/php.vim b/ftplugin/php.vim index 9ca18a7..bbd996f 100644 --- a/ftplugin/php.vim +++ b/ftplugin/php.vim @@ -175,7 +175,13 @@ endif try " register and start phan language server " TODO: Add a vim variable to configure extra options - call LanguageClient_registerServerCommands({'php': (s:cmd)}) + " call LanguageClient_registerServerCommands({'php': (s:cmd)}) + " pip install python-language-server + au User lsp_setup call lsp#register_server({ + \ 'name': 'phan', + \ 'cmd': {server_info->s:cmd}, + \ 'whitelist': ['php', 'html'], + \ }) " LanguageClientStart catch " do nothing