From 67326d0cc9ffa45a6ca15d3c961543b06c2809e0 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 13 Oct 2021 18:29:49 +0200 Subject: [PATCH] Enable proc macro support for rust-analyzer --- config.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config.org b/config.org index 0874512..c3aafda 100644 --- a/config.org +++ b/config.org @@ -15,6 +15,7 @@ - [[#rust][Rust]] - [[#column-width][Column width]] - [[#run-clippy-in-rust-analyzer][Run clippy in rust-analyzer]] + - [[#enable-proc-macro-support][Enable proc macro support]] - [[#cc][C/C++]] - [[#default-style][Default style]] - [[#org-mode][Org mode]] @@ -190,6 +191,15 @@ The default is ~"check"~, but I want clippy lints as well. (setq lsp-rust-analyzer-cargo-watch-command "clippy") #+end_src +*** Enable proc macro support + +By default lsp-mode disable these, I want them. + +#+begin_src emacs-lisp +(setq lsp-rust-analyzer-experimental-proc-attr-macros t) +(setq lsp-rust-analyzer-proc-macro-enable t) +#+end_src + ** C/C++ *** Default style