mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
22 lines
415 B
Bash
Executable File
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
|