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

Is there a standard for "IDE backends", and can I plug one into my favorite editor, Vim?


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.


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.

https://xkcd.com/1053/


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.


the way your start the sentence implies that it's impossible for this person to not know what Language Server Protocol, leading to your confusion




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

Search: