diff options
author | mattn <mattn.jp@gmail.com> | 2019-12-19 00:53:40 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-19 00:53:40 +0900 |
commit | d7bd902603e1955935748282757da191162631c8 (patch) | |
tree | d36de0dcd6b1ee70918ac4a298e6369ac6a62cc2 /installer | |
parent | fe18fd71e6a5ec372891a368adafc1965c67c33d (diff) | |
parent | 0474725cce2f851b4dfa921740ca3c95855dfe04 (diff) | |
download | vim-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')
-rwxr-xr-x | installer/install-lsp4xml.sh | 23 | ||||
-rwxr-xr-x | installer/install-yaml-language-server.sh | 17 |
2 files changed, 40 insertions, 0 deletions
diff --git a/installer/install-lsp4xml.sh b/installer/install-lsp4xml.sh new file mode 100755 index 0000000..12a330c --- /dev/null +++ b/installer/install-lsp4xml.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e + +cd $(dirname $0) + +server_dir="../servers/lsp4xml" +[ -d $server_dir ] && rm -rf $server_dir +mkdir $server_dir && cd $server_dir + +version="0.9.1" +url=https://dl.bintray.com/lsp4xml/releases/org/lsp4xml/org.eclipse.lsp4xml/${version}/org.eclipse.lsp4xml-${version}-uber.jar + +curl -LO "$url" + +cat <<EOF >lsp4xml +#!/bin/sh + +DIR=\$(cd \$(dirname \$0); pwd) +java -jar \$DIR/org.eclipse.lsp4xml-${version}-uber.jar +EOF + +chmod +x lsp4xml 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 . |