LSP working for Erlang
This commit is contained in:
parent
d112226aa7
commit
b3fb71f501
|
@ -368,6 +368,7 @@ output = "Hello, world!"
|
||||||
main: "main.erl",
|
main: "main.erl",
|
||||||
compile: "erl -compile main",
|
compile: "erl -compile main",
|
||||||
run: "erl -s main main",
|
run: "erl -s main main",
|
||||||
|
lsp: "erlang_ls",
|
||||||
template: `-module(main).
|
template: `-module(main).
|
||||||
-export([main/0]).
|
-export([main/0]).
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@ emacs-nox
|
||||||
|
|
||||||
# Erlang
|
# Erlang
|
||||||
erlang
|
erlang
|
||||||
|
rebar
|
||||||
|
|
||||||
# F#
|
# F#
|
||||||
fsharp
|
fsharp
|
||||||
|
|
|
@ -35,6 +35,7 @@ rm dmd_*.deb
|
||||||
wget -nv https://github.com/elixir-lsp/elixir-ls/releases/download/v0.5.0/elixir-ls.zip
|
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
|
unzip -d /opt/elixir-ls elixir-ls.zip
|
||||||
ln -s /opt/elixir-ls/language_server.sh /usr/bin/elixir-ls
|
ln -s /opt/elixir-ls/language_server.sh /usr/bin/elixir-ls
|
||||||
|
rm elixir-ls.zip
|
||||||
|
|
||||||
# Elm
|
# Elm
|
||||||
wget -nv https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz
|
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
|
chmod +x binary-for-linux-64-bit
|
||||||
mv binary-for-linux-64-bit /usr/bin/elm
|
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
|
# Go
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
export GOPATH=/tmp/go
|
export GOPATH=/tmp/go
|
||||||
|
|
|
@ -5,6 +5,14 @@ set -o pipefail
|
||||||
set -x
|
set -x
|
||||||
pushd /tmp >/dev/null
|
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
|
# Kalyn
|
||||||
git clone https://github.com/raxod502/kalyn.git
|
git clone https://github.com/raxod502/kalyn.git
|
||||||
pushd kalyn >/dev/null
|
pushd kalyn >/dev/null
|
||||||
|
|
Loading…
Reference in New Issue