aboutsummaryrefslogtreecommitdiff
path: root/installer/install-yaml-language-server.sh
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2019-12-19 00:53:40 +0900
committerGitHub <noreply@github.com>2019-12-19 00:53:40 +0900
commitd7bd902603e1955935748282757da191162631c8 (patch)
treed36de0dcd6b1ee70918ac4a298e6369ac6a62cc2 /installer/install-yaml-language-server.sh
parentfe18fd71e6a5ec372891a368adafc1965c67c33d (diff)
parent0474725cce2f851b4dfa921740ca3c95855dfe04 (diff)
downloadvim-lsp-settings-d7bd902603e1955935748282757da191162631c8.tar.gz
vim-lsp-settings-d7bd902603e1955935748282757da191162631c8.tar.bz2
vim-lsp-settings-d7bd902603e1955935748282757da191162631c8.zip
Merge pull request #5 from johejo/feature/support_yaml_and_xml
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 .