4 ms·
LSP support with lsp-mode is fantastic with at least Rust. I use Elixir at my day job and while it does a good job of doing 98% of what I want (go to definition
by ashton314 5y ago
LSP support with lsp-mode is fantastic with at least Rust. I use Elixir at my day job and while it does a good job of doing 98% of what I want (go to definition, find references (iffy; Elixir is difficult to analyze like this), code lenses, autocomplete, etc.) there are a few rough patches. This is likely due to shortcomings with the lang server implementation, not the lsp-mode library itself.
Like I said, editing Rust is awesome in Emacs; saw someone working on Rust in VS Code and didn't notice anything that Emacs couldn't match.
See also lsp-ui; I don't turn this on personally, but it does give you some significant bling.
- zozbot234 5y agolsp-mode is still not part of the official distribution, though.
- sph 5y agoNeither is eglot, the other implementation. AFAIK there is no LSP package in the official distribution.
- yaantc 5y agoeglot is part of the GNU ELPA packages archive, managed by the people doing Emacs. It's possible to install it from the Emacs package manager, and the package will be signed and verified. So although it's not part of the official distribution indeed it's pretty easy to install.
- wtetzner 5y agoIs that not also true of lsp-mode?
- yaantc 5y agoNo the same, lsp-mode is part of the MELPA archive not GNU ELPA. So it's easy to install too but MELPA has no package signature verification. For commonly used packages I don't think it's a big problem, any funny business would be detected quickly.
- matklad 5y agoAnd I’d argue that that’s right! As the post says, there’s no LSP in core VS Code either!
- Groxx 5y agorust-analyzer is easily the best LSP I've played with, by a huge margin. It's good enough to sell the whole concept on its own.