WIP: Crystal LSP

This commit is contained in:
Radon Rosborough 2020-08-22 17:14:56 -06:00
parent d9b6254bd1
commit 53f3001312
2 changed files with 11 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,14 @@ 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
ver="$(latest_release crystal-lang-tools/scry)"
wget -nv "https://github.com/crystal-lang-tools/scry/releases/download/${ver}/scry_linux.tar.gz"
mkdir scry
tar -xf scry_linux.tar.gz -C scry
mv scry/bin/linux/scry /usr/local/bin/scry
rm -rf scry
# D
wget -nv "$(curl -sSL https://dlang.org/download.html | grep -Eo '"http://[^"]+amd64.deb"' | tr -d '"')"
dpkg -i dmd_*.deb