Automatically download, install and keep up to date elixir-ls (https://github.com/elixir-lsp/elixir-ls) and set it up for use with eglot.
Usage: After adding this package to your load path
;; After eglot is loaded
(add-to-list 'eglot-server-programs `(elixir-mode . eglot-elixir))
Or if you are using the new Elixir mode with Treesitter support (elixir-ts-mode)
;; After eglot is loaded
(add-to-list 'eglot-server-programs `(elixir-ts-mode . eglot-elixir))
(add-to-list 'eglot-server-programs `(heex-ts-mode . eglot-elixir))
This sets eglot up to use this packages’ eglot-elixir
function as startup
function for eglot.
For the first run, eglot should be started manually by executing M-x eglot
in
an Elixir buffer.