From 5796d2bfbd8b34e718ae2a888e1b1f981ff99e9c Mon Sep 17 00:00:00 2001 From: John Turner Date: Mon, 10 Oct 2022 23:52:38 -0400 Subject: renamed eglot-dir-locals.el to eglot-rust-dir-locals.el --- dir-locals/eglot-rust-dir-locals.el | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 dir-locals/eglot-rust-dir-locals.el (limited to 'dir-locals/eglot-rust-dir-locals.el') diff --git a/dir-locals/eglot-rust-dir-locals.el b/dir-locals/eglot-rust-dir-locals.el new file mode 100644 index 0000000..9fff9e8 --- /dev/null +++ b/dir-locals/eglot-rust-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"))))) -- cgit v1.2.3