Elixir support for Sublime Text's LSP plugin provided through ElixirLS.
Requires Elixir 1.7.0+ and OTP 20+. A good way of installing these is using the ASDF package manager with the asdf-elixir plugin.
Install the following packages in Sublime Text:
- Elixir - 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
}
Source: https://lsp.readthedocs.io/en/latest/features/#configuring