emacs: Add nextls as alternative Elixir language server

This commit is contained in:
Erwin Boskma 2024-01-10 22:35:41 +01:00
parent e590918785
commit d28cb255df
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -1101,7 +1101,7 @@ Automatically use the =<lang>-ts-mode= when it is available
(add-to-list 'eglot-server-programs
'(conf-toml-mode . ("taplo" "lsp" "stdio")))
(add-to-list 'eglot-server-programs
'((elixir-mode elixir-ts-mode heex-ts-mode) . ("elixir-ls")))
'((elixir-mode elixir-ts-mode heex-ts-mode) . (eglot-alternatives '(("nextls" "--stdio") "elixir-ls"))))
(add-to-list 'eglot-stay-out-of 'flymake)
(setq eglot-autoshutdown t
eldoc-echo-area-use-multiline-p 0.1)