summaryrefslogtreecommitdiff
path: root/dir-locals
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2022-10-07 03:17:37 -0400
committerJohn Turner <jturner.usa@gmail.com>2022-10-07 03:17:37 -0400
commit9b4283e142006014d90ca4d34029be0b761c3816 (patch)
tree43c32f78f523fd2408df25aab590330910d0c598 /dir-locals
parent6fac8a28da9bf30da71941340505c2316d0db5a3 (diff)
downloademacs.d-9b4283e142006014d90ca4d34029be0b761c3816.tar.gz
moved dir-locals out of the init dir
Diffstat (limited to 'dir-locals')
-rw-r--r--dir-locals/eglot-dir-locals.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/dir-locals/eglot-dir-locals.el b/dir-locals/eglot-dir-locals.el
new file mode 100644
index 0000000..9fff9e8
--- /dev/null
+++ b/dir-locals/eglot-dir-locals.el
@@ -0,0 +1,6 @@
+((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")))))