Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It’s an interesting experiment, but an issue is that you might not want to give up using your regular language server. Do editors let you use more than one at a time? How do they display the combined results?

If you can’t have more than one at a time, one possibility would be to make the AI language server a proxy that passes through any query results from the other language server, maybe modifying or them improving them somehow. Whatever the other language server returns might or might not be useful context for the AI.



Most editors should let you use multiple language severs at once, they merge the results together which can be annoying.

LSP-AI is not meant to replace plugins. It works best when wrapped and used by a plugin. Our VS Code plugin is a great example of this: https://github.com/SilasMarvin/lsp-ai/wiki/Plugins

LSP-AI abstracts complex implementation details like maintaining document / context parity and providing different LLM backends.

I have a section no the Github Title: "The Case for LSP-AI" you might like: https://github.com/SilasMarvin/lsp-ai?tab=readme-ov-file#the...


neovim allows multiple LSPs. In my setup the different sources show virtual text comments with unique colors for each lsp, one message after the other - I think this is default behavior but i'm not sure


I’d love to get a peek at your config or setup - I’ve used Astro for a while because I just got too bogged down in my old vimrc, especially after migrating to Neo a while ago. It’s fine, but fiddling is less than stellar and I know my performance overhead is higher than it could be


Currently, whether multiple language servers can be active in one buffer is up to the language client. In Emacs for example, Eglot (built-in) doesn’t support this but LSP-mode (bolt-on) does.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: