4 ms·
Is there a standard for "IDE backends", and can I plug one into my favorite editor, Vim?
by amelius 7y ago
Is there a standard for "IDE backends", and can I plug one into my favorite editor, Vim?
- asdkhadsj 7y agoI'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.
- bluejekyll 7y agoRemember 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/ https://xkcd.com/1053/
- asdkhadsj 7y agoSure, 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?
- fhars 7y agoYes, 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.
- asdkhadsj 7y agoIndeed, 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.
- jtxx 7y agothe way your start the sentence implies that it's impossible for this person to not know what Language Server Protocol, leading to your confusion
- gameswithgo 7y agoYes, it uses the language server protocol: https://microsoft.github.io/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 https://rust-analyzer.github.io/manual.html#installation
- habitue 7y agoIt'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.
- scarmig 7y agoVim 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.
- ts0000 7y agohttps://langserver.org/ https://langserver.org/ via https://github.com/neoclide/coc.nvim https://github.com/neoclide/coc.nvim and https://github.com/fannheyward/coc-rust-analyzer https://github.com/fannheyward/coc-rust-analyzer