WIP: Kotlin LSP

This commit is contained in:
Radon Rosborough 2020-08-22 19:08:45 -06:00
parent 3fa097dfc6
commit 0ee658aa95
2 changed files with 8 additions and 0 deletions

View File

@ -1341,6 +1341,9 @@ PLEASE GIVE UP
repl: `JAVA_OPTS="-Duser.home=$PWD" kotlinc`,
main: "main.kts",
run: `JAVA_OPTS="-Duser.home=$PWD" kotlinc -script main.kts; kotlinc`,
lsp: {
start: "kotlin-language-server",
},
template: `println("Hello, world!")
`,
timeout: 30,

View File

@ -174,6 +174,11 @@ ln -s /opt/kotlin/bin/* /usr/local/bin/
ln -s /opt/kotlin/lib/* /usr/local/lib/
rm kotlin-*.zip
wget -nv https://github.com/fwcd/kotlin-language-server/releases/download/0.6.0/server.zip
unzip server.zip
mv server /opt/kotlin-language-server
ln -s /opt/kotlin-language-server/bin/kotlin-language-server /usr/local/bin/
# Lua
ver="$(latest_release EmmyLua/EmmyLua-LanguageServer)"
wget -nv "https://github.com/EmmyLua/EmmyLua-LanguageServer/releases/download/${ver}/EmmyLua-LS-all.jar"