Re:Rust Analyzer: Next few years
by amelius on Thursday May 21, 2020 @09:59AM
(#23258403)
Is there a standard for "IDE backends", and can I plug one into my favorite editor, Vim?
[ Parent
| on HN ]
Re:Rust Analyzer: Next few years
by gameswithgo on Thursday May 21, 2020 @10:04AM
(#23258467)
Yes, it uses the language server protocol:
https://microsoft.github.io/language-server-protocol/
The rust-analyzer docs show how to wire it up to VIM a few different ways: https://rust-analyzer.github.io/manual.html#installation
It's important to point out that rust-analyzer uses some bleeding edge features of the protocol, so sometimes certain things won't work as well in editors other than vscode. That being said, I believe the rust-analyzer author has indicated that he would fix that up to use more standard features if rust-analyzer becomes the officially recommended IDE backend.
Vim is happy to be a client for the Language Server Protocol (LSP), and more likely than not there's a language server of your choice available.
I'm confused on what you're asking, isn't that exactly what the Language Server Protocol is? You can use RustAnalyzer as an LSP for Rust & Vim, I use RustAnalyzer also as the LSP for Rust & Kakoune.
Re:Rust Analyzer: Next few years
by bluejekyll on Thursday May 21, 2020 @10:21AM
(#23258667)
Remember that not everyone is versed in all subjects all the time. This might be the first time they are finding out about the LSP, or it might be the first time they’ve found out the LSP works with vim. No reason to assume any of this.
Sure, but is what I asked not valid? I asked some questions, and said I was confused by their statement. If anything, I acknowledged this, which is why I wrote "Language Server Protocol" and not just the acronym LSP that they had to look up.
Did I mess this up?
Yes, your first sentence can easily be read as (I am only exaggerating slightly) “how can you be so stupid to ask the obvious?” Short form online communication is hard.
Indeed, I'll have to work to soften my tone next time. Appreciated! And here I thought I was doing well by not just using the LSP acronym lol.