From cd8682a8559abedad3891c29f7dc66a4af98625d Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Wed, 8 Jul 2020 20:55:14 -0600 Subject: [PATCH] LSP working for Lua --- backend/src/langs.ts | 1 + scripts/docker-install-phase5.bash | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 091e1a6..a612b52 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -587,6 +587,7 @@ KTHXBYE repl: "lua", main: "main.lua", run: "lua -i main.lua", + lsp: "java -cp /usr/lib/EmmyLua-LS.jar com.tang.vscode.MainKt", template: `print("Hello, world!") `, }, diff --git a/scripts/docker-install-phase5.bash b/scripts/docker-install-phase5.bash index ab0763b..58aee57 100755 --- a/scripts/docker-install-phase5.bash +++ b/scripts/docker-install-phase5.bash @@ -81,6 +81,10 @@ cp kotlinc/bin/* /usr/bin/ cp kotlinc/lib/* /usr/lib/ rm -rf kotlin-*.zip kotlinc +# Lua +wget -nv https://github.com/EmmyLua/EmmyLua-LanguageServer/releases/download/0.3.6/EmmyLua-LS-all.jar +mv EmmyLua-LS-all.jar /usr/lib/EmmyLua-LS.jar + # PowerShell wget -nv https://github.com/PowerShell/PowerShell/releases/download/v7.0.1/powershell-7.0.1-linux-x64.tar.gz mkdir /opt/powershell