From d32bad92f0ce43f026471e2ec7d299f05e84f79b Mon Sep 17 00:00:00 2001 From: Jo Date: Fri, 23 May 2025 02:39:37 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(modules/home)=20Update=20Zed=20Nix?= =?UTF-8?q?=20formatter=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.lock | 6 +++--- modules/home/apps/zed/default.nix | 21 ++++++++++----------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/flake.lock b/flake.lock index 38d0787..21c0b0a 100644 --- a/flake.lock +++ b/flake.lock @@ -76,11 +76,11 @@ ] }, "locked": { - "lastModified": 1747875884, - "narHash": "sha256-tdVx4kghhdy62LKuTnwE2RytOe8o88tah/yhpyuL0D4=", + "lastModified": 1747955385, + "narHash": "sha256-AKoBFaEGN02tGvBlkwVIDOGXouHvrTTfOUcvBDGxkxQ=", "owner": "nix-community", "repo": "home-manager", - "rev": "f9186c64fcc6ee5f0114547acf9e814c806a640b", + "rev": "a868570581f0dbdef7e33c8c9bb34b735dfcbacf", "type": "github" }, "original": { diff --git a/modules/home/apps/zed/default.nix b/modules/home/apps/zed/default.nix index df8f0fd..9ebbebd 100644 --- a/modules/home/apps/zed/default.nix +++ b/modules/home/apps/zed/default.nix @@ -40,6 +40,16 @@ in { copilot = false; }; + formatter = { + external = { + command = "alejandra"; + arguments = ["--quiet"]; + language = ["nix"]; + }; + }; + + format_on_save = "on"; + ### Language specific configurations languages = { ### Nix language @@ -47,17 +57,6 @@ in { language_servers = ["nixd" "!nil"]; }; }; - - ### LSP configurations - lsp = { - nixd = { - initialization_options = { - formatting = { - command = ["alejandra" "--quiet" "--"]; - }; - }; - }; - }; }; extraPackages = with pkgs; [nixd];