eglot-ltex icon indicating copy to clipboard operation
eglot-ltex copied to clipboard

How can I change servers?

Open maikol-solis opened this issue 3 months ago • 3 comments

Hi. Thanks for this package, it's very useful.

There is just a little glitch that I don't understand.

In these lines, https://github.com/emacs-languagetool/eglot-ltex/blob/b61e36fad79c03ef3c1acc3c3366df7fc223aed8/eglot-ltex.el#L94-L95

the eglot-ltex adds all the registered modes into eglot-server-programs.

However, I think is will be worthy using the eglot-alternatives command .

According to the documentation

If you have fools and phewls installed, the function produced by eglot-alternatives will prompt for the server to use in foo-mode buffers. Else it will use whichever is available.

So, for example, if I'm in a latex buffer, and start eglot I can choose between texlab or ltex depending on the task that I need to do.

WDYT?

maikol-solis avatar Apr 09 '24 20:04 maikol-solis