aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-16 02:47:35 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-16 02:47:35 +0900
commit0bd056ae3db454f076edd278237cdb1cca503d51 (patch)
tree4c41e74e47d84af16bf418b575efbe63cf2d3738 /installer
parent8ba0ccfdcc9b8ee5d9e90a993d364eb07a2deda4 (diff)
downloadvim-lsp-settings-0bd056ae3db454f076edd278237cdb1cca503d51.tar.gz
vim-lsp-settings-0bd056ae3db454f076edd278237cdb1cca503d51.tar.bz2
vim-lsp-settings-0bd056ae3db454f076edd278237cdb1cca503d51.zip
Add installer
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/install-intelephense-server.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/installer/install-intelephense-server.sh b/installer/install-intelephense-server.sh
new file mode 100755
index 0000000..7bbc064
--- /dev/null
+++ b/installer/install-intelephense-server.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+[ -d ../servers/intelephense-server ] && rm -rf ../servers/intelephense-server
+mkdir ../servers/intelephense-server
+cd ../servers/intelephense-server
+git clone "https://github.com/bmewburn/vscode-intelephense" .
+npm install
+npm run compile
+
+cat <<EOF > intelephense-server
+#!/bin/sh
+
+DIR=\$(cd \$(dirname \$0); pwd)
+node \$DIR/node_modules/.bin/intelephense --stdio
+EOF
+
+chmod +x vim-language-server