❓ Does anyone have an example of how to configure eglot to use an add-on LSP server, e.g. https://github.com/nametake/golangci-lint-langserver in addition to the regular Go mode langserver?
I think lsp-mode supports multiple LSP servers, but I haven’t checked it in a while.
Seems I was mistaken https://emacs-lsp.github.io/lsp-mode/page/faq/#how-to-configure-a-server-with-local-variables
https://github.com/yegappan/lsp/issues/228, Eglot doesn’t.
lsp-mode does support this, yes, which is why I thought to ask about eglot support 🙂 The specific command is even built-in to lsp-mode: https://github.com/emacs-lsp/lsp-mode/commit/2d031527745c458327c9f4cd635b18a47d337a8d I have to consider whether it's attractive enough for me to switch to lsp-mode from Eglot. (I tried switching to lsp-bridge recently, but had to switch back because it broke my workflow in too many places.)
For now I added this with flycheck-golangci (could not get any of the flymake-golangci*) versions to work, but I would prefer LSP since I assume it would support automatic fixes as LSP actions.
I am not sure it's doable (yet). I know the eglot author mentioning this should be done with a server multiplexer instead of being baked into the lsp client and he has a repo with work on this, but I am not sure how usable this is
^ this is from the eglot maintainer
otherwise there's https://github.com/thefrontside/lspx
I guess there are others to be found
Thank you!
I don’t know if Joao’s project will ever be finished. The choice of C++ is interesting 😅. Is the Python / Typescript implementation too slow? Why not use Go then? Either way, this Python implementation works: https://github.com/garyo/lsp-multiplexer
I haven’t took a look into LSPX thought, might be in better state.