Emacs - Elixir Setup Configuration Wiki

Ohh… It seems I just misconfigured project root directory settings. I’m using elixir-ls with lsp-mode, and exec M-x lsp-workspace-folders-remove then M-x lsp-workspace-folders-add to set proper project root. After that syntax errer indicator appears in the current buffer. Sorry for the noise, I’m a Emacs and Elixir noob :P.

@NobbZ Out of curiosity, I tried to configure elixir-ls with eglot. How do you set project root under eglot? In lsp-mode, above commands can handle root directory, but I can’t find such counterparts in eglot. Eglot recognize the current directory where the editing file exists as project root, so syntax error detection doesn’t work.

1 Like