erlls-0.0.1 is not a library.
ErlLS
Erlang language server.
Supported LSP features
- textDocument/definition
- Module
- Function
- Type
- Record
- Macro
- Variable
- Include file
- textDocument/formatting
- Formatting documents by using efmt
- textDocument/publishDiagnostics
Editor integrations
ErlLS can be used with any LSP clients. Here are a few examples.
Visual Studio Code
Please install erlls extension.
There is no need to install the erlls binary using the $ cargo install command as the extension already includes the WebAssembly build.
Note that the extension doesn't offer some basic features such as syntax highlighting, so it's recommended to use it in conjunction with other Erlang extensions.
Emacs (lsp-mode)
- Install
erllscommand.
$ cargo install erlls
- Add the following code to your
.emacsfile.
(with-eval-after-load 'lsp-mode
(add-to-list 'lsp-language-id-configuration
'(erlang-mode . "erlang")))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection "erlls")
:activation-fn (lsp-activate-on "erlang")
:priority -1
:server-id 'erlls))