Getting Sublime Text 4 working with Elixir LSP
I'm running the latest versions of:
They are both installed by cloning the repo to get the latest versions:
cd "~/Library/Application Support/Sublime Text 3/Packages"
git clone [email protected]:sublimelsp/LSP.git
git clone git://github.com/elixir-lang/elixir-tmbundle Elixir
Clone the Elixir Language Server repo and compile:
git clone [email protected]:elixir-lsp/elixir-ls.git
cd elixir-ls
mix compile
mix elixir_ls.release -o release/
Configure LSP.sublime-settings
to point to the Elixir LS "release" we just compiled:
"clients": {
"elixir-ls": {
"command": [
"ABSOLUTE_ELIXIR_LS_PATH/release/language_server.sh"
],
"enabled": true,
"languageId": "elixir",
"scopes": [
"source.elixir"
],
"settings": {
},
"syntaxes": [
"Packages/Elixir/Syntaxes/Elixir.tmLanguage"
]
}
}