diff --git a/modules/lang/rust/config.el b/modules/lang/rust/config.el index 30f224fa4..6ccc824b7 100644 --- a/modules/lang/rust/config.el +++ b/modules/lang/rust/config.el @@ -10,6 +10,10 @@ (use-package! rustic :mode ("\\.rs$" . rustic-mode) :commands rustic-run-cargo-command rustic-cargo-outdated + :init + ;; `rustic-analyzer-command' is set to an absolute path by default, which + ;; makes rust-analyzer detection needlessly brittle. + (setq rustic-analyzer-command '("rust-analyzer")) :config (set-docsets! 'rustic-mode "Rust")