reddit / emacs

New to emacs: how to setup rust-analyzer properly?

blureglades · 2022-04-28 21:02
Hi! I wanted to give `doom-emacs` a try today. My aim is to use it mainly for Rust development. The installation was straightforward however, when opening a project, code completion suggestions and LSP diagnostics are not working. I did make sure to install [lsp-mode](https://emacs-lsp.github.io/lsp-mode/page/installation/) as well. Also, is it okay for my statusline to be displaying "`Rustic 1.62`" instead of `rust-analyzer`? I have the following in my `config.el`: (setq lsp-rust-analyzer-server-display-inlay-hints t) and in my `init.el` (rust +lsp) Some guidance would be deeply appreciated!
blureglades · 2022-04-29 00:03
Nevermind folks, it works now. I forgot to reload my config after editing the packages :-)
ExistingProgram3883 · 2022-04-29 04:29
Good to hear! Would you mind to post the relevant part of your config here, so that others can use it as well?