summaryrefslogtreecommitdiff
path: root/dir-locals/eglot-rust-dir-locals.el
blob: 5f7d0c675e4b5c59f566f9d6d7bde0cb8279412f (plain)
1
2
3
4
5
6
7
((rust-mode . ((eval . (eglot-ensure))
               (eglot-workspace-configuration . ((:rust-analyzer . (:checkOnSave
                                                                    (:command "clippy")))))
               (rust-format-on-save . t)
               (rust-format-goto-problem . t)
               (rust-rustfmt-switches . ("--edition" "2021"))))
 (nil . ((rust-cargo-bin . "TMPDIR=~/tmp cargo"))))