blob: e2c893f5e0661e2ca2af2682c59563deea0856b5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
((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"))))))))
|