Skip to content

Commit

Permalink
[emacs] Always use clippy with rust-analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
gmacon committed Aug 23, 2024
1 parent 556cf87 commit ac89cab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion home-manager/config/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@
(with-eval-after-load 'eglot
(add-to-list
'eglot-server-programs
'(nix-mode . ("nil" :initializationOptions (:formatting (:command ["nixfmt"]))))))
'(nix-mode . ("nil" :initializationOptions (:formatting (:command ["nixfmt"])))))
(add-to-list 'eglot-server-programs
'((rust-ts-mode rust-mode) .
("rust-analyzer" :initializationOptions (:check (:command "clippy"))))))
:hook
(python-mode . eglot-ensure)
(python-ts-mode . eglot-ensure)
Expand Down

0 comments on commit ac89cab

Please sign in to comment.