prelude icon indicating copy to clipboard operation
prelude copied to clipboard

Please change Rust default LSP into Rust-Analyzer.

Open Mika-Lahtinen opened this issue 3 years ago • 5 comments

Rust-analyzer provides better experience than RLS when coding in Rust, however, I don't really clear how to make the change, any advice?

Mika-Lahtinen avatar Jun 14 '22 15:06 Mika-Lahtinen

I followed this advice: https://robert.kra.hn/posts/rust-emacs-setup/

To integrate with prelude, I made a module that is almost copied verbatim from his standalone init.el file: https://github.com/rksm/emacs-rust-config/blob/master/init.el

hntrmrrs avatar Jul 21 '22 10:07 hntrmrrs

@hntrmrrs PR welcome!

bbatsov avatar Jul 21 '22 10:07 bbatsov

Will do! Are you OK with switching the default from rls to rust-analyzer and rustic?

hntrmrrs avatar Jul 21 '22 10:07 hntrmrrs

@bbatsov Otherwise, I'll probably define a customization variable which switches to using rustic and rust-analyzer.

hntrmrrs avatar Jul 21 '22 10:07 hntrmrrs

@hntrmrrs It's fine to have only rust-analyzer and rustic.

bbatsov avatar Jul 22 '22 05:07 bbatsov