aboutsummaryrefslogtreecommitdiff
path: root/installer/install-vim-language-server.sh
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-16 02:38:24 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-16 02:38:24 +0900
commit20ea139d60f4cac4841f94119f965979405f4811 (patch)
treea24f4d552d840c7b169015fba7d1dc475fa4d3fa /installer/install-vim-language-server.sh
parent0ef51e93ea3d7a3444c853edc3ed3dcf5692beb8 (diff)
downloadvim-lsp-settings-20ea139d60f4cac4841f94119f965979405f4811.tar.gz
vim-lsp-settings-20ea139d60f4cac4841f94119f965979405f4811.tar.bz2
vim-lsp-settings-20ea139d60f4cac4841f94119f965979405f4811.zip
Install to local directory
Diffstat (limited to 'installer/install-vim-language-server.sh')
-rwxr-xr-xinstaller/install-vim-language-server.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/installer/install-vim-language-server.sh b/installer/install-vim-language-server.sh
index e18c2d7..0f63101 100755
--- a/installer/install-vim-language-server.sh
+++ b/installer/install-vim-language-server.sh
@@ -1,3 +1,20 @@
#!/bin/sh
-yarn global add vim-language-server
+set -e
+
+cd $(dirname $0)
+[ -d ../servers/vim-language-server ] && rm -rf ../servers/vim-language-server
+mkdir ../servers/vim-language-server
+cd ../servers/vim-language-server
+git clone https://github.com/iamcco/vim-language-server .
+yarn
+yarn build
+
+cat <<EOF > vim-language-server
+#!/bin/sh
+
+DIR=\$(cd \$(dirname \$0); pwd)
+node bin/index.js --stdio
+EOF
+
+chmod +x vim-language-server