GNU bug report logs -
#65359
[PATCH] eglot: add "lexical" LSP server
Previous Next
Reported by: Mou Tong <mou.tong <at> outlook.com>
Date: Fri, 18 Aug 2023 01:44:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
There is a new LSP server for elixir: [lexical].
Although it said there had problems to use it with eglot, but I didn't
meet the [problem] it said in the instruction.
And I had used it for serveral projects and it worked fine, I put this
in my config and I don't know if there is a better way:
```emacs-lisp
(with-eval-after-load 'eglot
(setf (alist-get '(elixir-mode elixir-ts-mode heex-ts-mode)
eglot-server-programs
nil nil #'equal)
(eglot-alternatives
`(("start_lexical.sh")
,(if (and (fboundp 'w32-shell-dos-semantics)
(w32-shell-dos-semantics))
'("language_server.bat")
'("language_server.sh"))))))
```
So I send a patch like this.
[lexical]: https://github.com/lexical-lsp/lexical
[problem]: https://github.com/lexical-lsp/lexical/blob/main/pages/installation.md#vanilla-emacs-with-eglot
[Message part 2 (text/html, inline)]
[0001-Add-lexical-LSP-server-to-Eglot.patch (application/octet-stream, attachment)]
This bug report was last modified 1 year and 335 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.