aboutsummaryrefslogtreecommitdiff
path: root/settings/intelephense.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-25 17:12:46 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-25 17:12:46 +0900
commit91ad6b301f156a827fcb1516c2228c24b7b309ce (patch)
treeeed40c450b38cadb1d3cc239c2948765393c3802 /settings/intelephense.vim
parent7249d58bb0217d9cc95b0efacdb550f20be95914 (diff)
downloadvim-lsp-settings-91ad6b301f156a827fcb1516c2228c24b7b309ce.tar.gz
vim-lsp-settings-91ad6b301f156a827fcb1516c2228c24b7b309ce.tar.bz2
vim-lsp-settings-91ad6b301f156a827fcb1516c2228c24b7b309ce.zip
Rename to intelephense
Diffstat (limited to 'settings/intelephense.vim')
-rw-r--r--settings/intelephense.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/settings/intelephense.vim b/settings/intelephense.vim
new file mode 100644
index 0000000..e57a3e3
--- /dev/null
+++ b/settings/intelephense.vim
@@ -0,0 +1,12 @@
+augroup vimlsp_settings_intelephense_server
+ au!
+ LspRegisterServer {
+ \ 'name': 'intelephense',
+ \ 'cmd': {server_info->lsp_settings#get('intelephense', 'cmd', [lsp_settings#exec_path('intelephense'), '--stdio'])},
+ \ 'root_uri':{server_info->lsp_settings#get('intelephense', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))},
+ \ 'whitelist': lsp_settings#get('intelephense', 'whitelist', ['php']),
+ \ 'blacklist': lsp_settings#get('intelephense', 'blacklist', []),
+ \ 'config': lsp_settings#get('intelephense', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('intelephense', 'workspace_config', {}),
+ \ }
+augroup END