Hey, fairly new here, wanted to know if there are any guides on how to set up rust-analyzer in non supported editors? I got rs_lsp_server.exe running, now i would have to make the client side integration in my custom editor work. problem is its c/cpp and documentation on lsp seems rather sparse.
i could probably call from c/cpp to a rust build dll and load the rust-analyzer example
90% features of rust-analyzer is vanilla LSP, so perhaps a better question to ask is "how do I get LSP support in my editor?".
The list of current implementations is here: https://microsoft.github.io/language-server-protocol/implementors/sdks/
If you editor is missing, than implementing LSP using one of existing libraries would be the first step.
@matklad both links link to the same page if that was intended. RustLSP seems outdated, as the owner said in https://github.com/rust-lang/rls/pull/96#issuecomment-288348542. The cpp implementor doesnt have a lot of documentation https://github.com/kuafuwang/LspCpp. quite sad
https://github.com/otreblan/libclsp seems to be missing a bit of stuff.
im wondering if i could use the rustlsp one and interop between cpp and the rust lib
right, the first one is supposed to be https://microsoft.github.io/language-server-protocol/implementors/tools/
My gut feeling that trying to use rust-lsp from cpp would create more problems that it would solve.
The base protocol is not that complicated, coding it by hand might be easier than depending on a dependecy
@matklad I see we ship
.vsix file via GitHub releases. While I am amending the docs, should I mention this in
Installation from prebuilt binaries chapter?