aboutsummaryrefslogtreecommitdiff
path: root/installer/install-yaml-language-server.sh
diff options
context:
space:
mode:
authorMitsuo Heijo <mitsuo.heijo@gmail.com>2019-12-19 00:35:59 +0900
committerMitsuo Heijo <mitsuo.heijo@gmail.com>2019-12-19 00:35:59 +0900
commit0474725cce2f851b4dfa921740ca3c95855dfe04 (patch)
treedd36236638dedef440e52350f88fe3256f99bfad /installer/install-yaml-language-server.sh
parentb384fe6f3c8c46315821bf2a08798bfdcda880ee (diff)
downloadvim-lsp-settings-0474725cce2f851b4dfa921740ca3c95855dfe04.tar.gz
vim-lsp-settings-0474725cce2f851b4dfa921740ca3c95855dfe04.tar.bz2
vim-lsp-settings-0474725cce2f851b4dfa921740ca3c95855dfe04.zip
feature: Support yaml-language-server and lsp4xml
Diffstat (limited to 'installer/install-yaml-language-server.sh')
-rwxr-xr-xinstaller/install-yaml-language-server.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/installer/install-yaml-language-server.sh b/installer/install-yaml-language-server.sh
new file mode 100755
index 0000000..015f953
--- /dev/null
+++ b/installer/install-yaml-language-server.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e
+
+cd $(dirname $0)
+
+server_dir="../servers/yaml-language-server"
+[ -d $server_dir ] && rm -rf $server_dir
+mkdir $server_dir && cd $server_dir
+
+npm init -y
+cat <<EOF >package.json
+{"name": ""}
+EOF
+npm install yaml-language-server
+
+ln -s ./node_modules/.bin/yaml-language-server .