mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
34 lines
503 B
Bash
Executable File
34 lines
503 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
os=$(uname -s | tr "[:upper:]" "[:lower:]")
|
|
arch="-x64"
|
|
|
|
case $os in
|
|
linux) ;;
|
|
darwin)
|
|
os="osx"
|
|
arch=""
|
|
;;
|
|
*)
|
|
printf "%s doesn't supported by bash installer" "$os"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
version="v1.34.9"
|
|
url="https://github.com/OmniSharp/omnisharp-roslyn/releases/download/$version/omnisharp-$os$arch.tar.gz"
|
|
curl -L "$url" | tar xz
|
|
|
|
chmod +x run
|
|
|
|
cat <<EOF >omnisharp-lsp
|
|
#!/usr/bin/env bash
|
|
|
|
DIR=\$(cd \$(dirname \$0); pwd)
|
|
\$DIR/run \$*
|
|
EOF
|
|
|
|
chmod +x omnisharp-lsp
|