Elixir support for Sublime Text's LSP plugin provided through ElixirLS.
Requires Elixir 1.12.0+ and OTP 23+. A good way of installing these is
using the ASDF package manager with the
asdf-elixir plugin. On Windows,
Scoop is a solid option. scoop install elixir
or
scoop install [email protected]
.
Install the following packages in Sublime Text:
- Elixir or Elixir Sublime Syntax - Elixir syntax support
- LSP - Base LSP package
- LSP-elixir - This plugin
Defaults can be edited by selecting Preferences: LSP-elixir Settings
from the
command palette.
To format your code on save add the following setting to your syntax-specific settings (Elixir in this case) and/or project files:
{
"lsp_format_on_save": true
}
For developers! To upgrade this library to use the latest version of elixir-ls, run:
./scripts/update.py
This will update the server info in plugin.py
to match the latest release of
elixir-ls.