mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
27 lines
430 B
Bash
Executable File
27 lines
430 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
os=$(uname -s | tr "[:upper:]" "[:lower:]")
|
|
architecture=$(uname -m)
|
|
|
|
case $os in
|
|
linux)
|
|
platform="linux-$architecture"
|
|
;;
|
|
darwin)
|
|
case $architecture in
|
|
arm64)
|
|
platform="darwin-aarch64"
|
|
;;
|
|
*)
|
|
platform="darwin-$architecture"
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
|
|
curl -L "https://github.com/tamasfe/taplo/releases/latest/download/taplo-$platform.gz" | gzip -d >taplo-lsp
|
|
|
|
chmod +x taplo-lsp
|