Tweak rustic config

This commit is contained in:
Nathan McCarty 2023-03-28 14:25:12 -04:00
parent c548d627b7
commit 00f27c334c
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -853,6 +853,12 @@ Most of these are defaults, but I like having them explicit for my sanity
lsp-rust-analyzer-diagnostics-enable-experimental t
lsp-rust-analyzer-display-chaining-hints t))
#+end_src
*** Configure cargo commands
Configure the ~cargo clippy~ and ~cargo check~ invoked through rustic mode to utilize the ~--all-targets~ and ~--all-features~ arguments by default.
#+begin_src emacs-lisp
(setq rustic-cargo-check-arguments "--all-targets --all-features"
rustic-default-clippy-arguments "--all-targets --all-features")
#+end_src
** Nix
Use rnix-lsp
#+begin_src emacs-lisp