WIP: Crystal LSP using hotfix

This commit is contained in:
Radon Rosborough 2020-08-22 17:19:01 -06:00
parent d9b6254bd1
commit d6f3c63b8b
2 changed files with 13 additions and 0 deletions

View File

@ -540,6 +540,9 @@ int main() {
name: "Crystal",
main: "main.cr",
run: "crystal main.cr",
lsp: {
start: "scry",
},
template: `puts "Hello, world!"
`,
timeout: 15,

View File

@ -45,6 +45,16 @@ wget -nv "https://github.com/snoe/clojure-lsp/releases/download/${ver}/clojure-l
chmod +x clojure-lsp
mv clojure-lsp /usr/local/bin/clojure-lsp
# Crystal
git clone https://github.com/crystal-lang-tools/scry.git
pushd scry >/dev/null
git fetch origin pull/174/head:hotfix
git checkout hotfix
shards build --release
mv bin/scry /usr/local/bin/scry
popd >/dev/null
rm -rf scry
# D
wget -nv "$(curl -sSL https://dlang.org/download.html | grep -Eo '"http://[^"]+amd64.deb"' | tr -d '"')"
dpkg -i dmd_*.deb