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