mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-17 12:00:29 +01:00
21 lines
374 B
Bash
Executable File
21 lines
374 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
os=$(uname -s | tr "[:upper:]" "[:lower:]")
|
|
|
|
case $os in
|
|
linux)
|
|
platform="linux"
|
|
;;
|
|
darwin)
|
|
platform="mac"
|
|
;;
|
|
esac
|
|
|
|
version="2020-07-13"
|
|
curl -L -o rust-analyzer-$platform "https://github.com/rust-analyzer/rust-analyzer/releases/download/$version/rust-analyzer-$platform"
|
|
|
|
mv rust-analyzer-$platform rust-analyzer
|
|
chmod +x rust-analyzer
|