Files
vim-lsp-settings-mirror/installer/install-taplo-lsp.sh
2021-10-03 12:59:40 +09:00

22 lines
415 B
Bash
Executable File

#!/usr/bin/env bash
set -e
os=$(uname -s | tr "[:upper:]" "[:lower:]")
# Releases of taplo-lsp have the tag such as 'release-lsp-${version}'
latest="0.2.6"
case $os in
linux)
platform="x86_64-unknown-linux-gnu"
;;
darwin)
platform="x86_64-apple-darwin-gnu"
;;
esac
curl -L "https://github.com/tamasfe/taplo/releases/download/release-lsp-$latest/taplo-lsp-$platform.tar.gz" | tar xz
chmod +x taplo-lsp