+++ /dev/null
-((rust-ts-mode . ((eval . (progn
- (require 'eglot)
- (eglot-ensure)
- (setq-local eglot-workspace-configuration '(:rust-analyzer (:checkb
- (:command "clippy"))))
- (when (require 'company nil t)
- (company-mode 1))
- (when (require 'rust-mode nil t)
- (setq-local rust-format-on-save t
- rust-rustfmt-switches '("--edition" "2021"))))))))
--- /dev/null
+((rust-ts-mode . ((eglot-workspace-configuration . (:rust-analyzer (:check (:command "clippy"))))
+ (fmt-executable . "rustfmt")
+ (eval . (eglot-ensure))
+ (eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t)))))