I broke up with neovim....vim is my best friend now

This commit is contained in:
LinlyBoi
2023-04-30 08:14:07 +03:00
parent 0d185449c5
commit 4a4a6b1e81
5245 changed files with 468325 additions and 25 deletions

View File

@@ -0,0 +1,36 @@
#!/bin/sh
set -e
curl -Lo ./coursier https://git.io/coursier-cli
chmod +x ./coursier
version=$(curl -LsS "https://scalameta.org/metals/latests.json" | grep -o '"release": "[^"]*"' | grep -o '[\.0-9]*')
java_flags=
if [ -n "${https_proxy}" ]; then
https_proxy_without_protocol="${https_proxy#http://}"
java_flags="$java_flags -J-Dhttps.proxyHost=${https_proxy_without_protocol%:*}"
java_flags="$java_flags -J-Dhttps.proxyPort=${https_proxy_without_protocol##*:}"
fi
if [ -n "${http_proxy}" ]; then
http_proxy_without_protocol="${http_proxy#http://}"
java_flags="$java_flags -J-Dhttp.proxyHost=${http_proxy_without_protocol%:*}"
java_flags="$java_flags -J-Dhttp.proxyPort=${http_proxy_without_protocol##*:}"
fi
if [ -n "${no_proxy}" ]; then
java_flags="$java_flags -J-Dhttp.nonProxyHosts=${no_proxy}"
fi
# shellcheck disable=SC2086
./coursier bootstrap \
--java-opt -Xss4m \
--java-opt -Xms100m \
${java_flags} \
org.scalameta:metals_2.13:"${version}" \
-r bintray:scalacenter/releases \
-r sonatype:releases \
-o metals -f