From 2eb8d23e4b184d7a9a3fb6f12cd985649535f0f7 Mon Sep 17 00:00:00 2001 From: Isaac Corbrey Date: Fri, 12 Jun 2026 11:38:33 -0500 Subject: [PATCH] jujutsu: Add rustfmt as a fix tool --- modules/home/jujutsu/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/home/jujutsu/default.nix b/modules/home/jujutsu/default.nix index 9c72698..69c4966 100644 --- a/modules/home/jujutsu/default.nix +++ b/modules/home/jujutsu/default.nix @@ -176,6 +176,14 @@ }) ]; } + (lib.mkIf config.modules.home.rust.enable { + programs.jujutsu.settings = { + fix.tools.rustfmt = { + command = ["rustfmt" "--emit" "stdout"]; + patterns = ["glob:'**/*.rs'"]; + }; + }; + }) (lib.mkIf config.modules.home.nushell.enable { modules.home.wsl-bridge.map = { "~/.config/jj/scripts/fork.nu" = { -- 2.51.2