aboutsummaryrefslogtreecommitdiff
path: root/installer/install-vim-language-server.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installer/install-vim-language-server.sh')
-rwxr-xr-xinstaller/install-vim-language-server.sh18
1 files changed, 3 insertions, 15 deletions
diff --git a/installer/install-vim-language-server.sh b/installer/install-vim-language-server.sh
index be76522..17b87df 100755
--- a/installer/install-vim-language-server.sh
+++ b/installer/install-vim-language-server.sh
@@ -1,20 +1,8 @@
-#!/bin/sh
+#!/bin/bash
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 \$DIR/bin/index.js --stdio
-EOF
-
-chmod +x vim-language-server
+. ./npm.sh
+npm_install vim-language-server vim-language-server