From afa6b7ab90d1a247b532556aff181bde8b81e0e2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 27 Feb 2020 11:55:27 -0500 Subject: [PATCH] Fix absolute path in rustic-analyzer-command by default --- modules/lang/rust/config.el | 4 ++++ 1 file changed, 4 insertions(+) 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")