LSP working for Erlang

This commit is contained in:
Radon Rosborough 2020-07-08 19:09:22 -06:00
parent d112226aa7
commit b3fb71f501
4 changed files with 16 additions and 0 deletions

View File

@ -368,6 +368,7 @@ output = "Hello, world!"
main: "main.erl",
compile: "erl -compile main",
run: "erl -s main main",
lsp: "erlang_ls",
template: `-module(main).
-export([main/0]).

View File

@ -17,6 +17,7 @@ emacs-nox
# Erlang
erlang
rebar
# F#
fsharp

View File

@ -35,6 +35,7 @@ rm dmd_*.deb
wget -nv https://github.com/elixir-lsp/elixir-ls/releases/download/v0.5.0/elixir-ls.zip
unzip -d /opt/elixir-ls elixir-ls.zip
ln -s /opt/elixir-ls/language_server.sh /usr/bin/elixir-ls
rm elixir-ls.zip
# Elm
wget -nv https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz
@ -42,6 +43,11 @@ gunzip binary-for-linux-64-bit.gz
chmod +x binary-for-linux-64-bit
mv binary-for-linux-64-bit /usr/bin/elm
# Erlang
wget -nv https://s3.amazonaws.com/rebar3/rebar3
chmod +x rebar3
mv rebar3 /usr/bin/rebar3
# Go
export GO111MODULE=on
export GOPATH=/tmp/go

View File

@ -5,6 +5,14 @@ set -o pipefail
set -x
pushd /tmp >/dev/null
# Erlang
git clone https://github.com/erlang-ls/erlang_ls.git
pushd erlang_ls >/dev/null
make
mv _build/default/bin/erlang_ls /usr/bin/erlang_ls
popd >/dev/null
rm -rf erlang_ls
# Kalyn
git clone https://github.com/raxod502/kalyn.git
pushd kalyn >/dev/null