diff options
Diffstat (limited to 'installer/install-elixir-ls.sh')
-rw-r--r-- | installer/install-elixir-ls.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/installer/install-elixir-ls.sh b/installer/install-elixir-ls.sh new file mode 100644 index 0000000..b1497b6 --- /dev/null +++ b/installer/install-elixir-ls.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set -e + +cd $(dirname $0) + +server_dir="../servers/elixir-ls" +[ -d $server_dir ] && rm -rf $server_dir +mkdir $server_dir && cd $server_dir + +version="v0.2.25" +url="https://github.com/JakeBecker/elixir-ls/releases/download/$version/elixir-ls.zip" +curl -LO "$url" +unzip elixir-ls.zip +rm elixir-ls.zip + +cat <<EOF > elixir-ls +#!/bin/sh + +DIR=\$(cd \$(dirname \$0); pwd) +\$DIR/language_server.sh \$* +EOF + +chmod +x elixir-ls |