emacs

Stig Brautaset 2025-03-14T12:01:10.047009Z

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?

bozhidar 2025-03-17T13:02:33.977829Z

I think lsp-mode supports multiple LSP servers, but I haven’t checked it in a while.

Akiz 2025-03-17T13:16:25.281679Z

https://github.com/yegappan/lsp/issues/228, Eglot doesn’t.

Stig Brautaset 2025-03-17T14:21:38.120579Z

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.)

Stig Brautaset 2025-03-24T17:24:34.144209Z

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.

mpenet 2025-03-14T12:20:46.571079Z

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

mpenet 2025-03-14T12:21:44.383619Z

https://github.com/joaotavora/lsplex

mpenet 2025-03-14T12:22:47.852889Z

^ this is from the eglot maintainer

mpenet 2025-03-14T12:22:52.801809Z

otherwise there's https://github.com/thefrontside/lspx

mpenet 2025-03-14T12:25:22.023639Z

I guess there are others to be found

Stig Brautaset 2025-03-14T13:02:58.813479Z

Thank you!

Akiz 2025-03-15T08:54:56.176069Z

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

👍 2
Akiz 2025-03-15T08:56:05.321139Z

I haven’t took a look into LSPX thought, might be in better state.