From 35c98bd145d42147520c61e8d5cf4985077daf29 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sun, 31 Aug 2025 15:25:19 -0400 Subject: dir-locals: add rust-analyzer config --- .dir-locals.el | 5 ++++- shell.nix | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.dir-locals.el b/.dir-locals.el index 55b82b2..058923b 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,7 +1,10 @@ ;;; Directory Local Variables -*- no-byte-compile: t -*- ;;; For more information see (info "(emacs) Directory Variables") -((nil . ((compile-command . "make serve"))) +((nil . ((compile-command . "make serve") + ;; https://rust-analyzer.github.io/book/configuration.html + (eglot-workspace-configuration + . (:rust-analyzer ( :typing (:triggerChars ".=()<>")))))) (js-base-mode . ((js-indent-level . 4) (js-chain-indent . t) (js-indent-first-init . dynamic)))) diff --git a/shell.nix b/shell.nix index 1c4e620..b56fdc2 100644 --- a/shell.nix +++ b/shell.nix @@ -9,6 +9,7 @@ pkgs.mkShellNoCC { wasm-pack rust-analyzer clippy + rustfmt # the only thing better than needing cargo's infinite dependencies # is needing npm's as well, just so we can use a bundler built for # another, wildly different, registry. -- cgit v1.3