From 1a3bbe351a782734fb8723aeab32001b0ca681b3 Mon Sep 17 00:00:00 2001 From: Jade Date: Sun, 26 Nov 2023 21:34:14 +0100 Subject: [PATCH] add alejandra as formatter for nix to helix config --- common.nix | 2 -- modules/shell/helix.nix | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common.nix b/common.nix index 44bb9dc..8612199 100644 --- a/common.nix +++ b/common.nix @@ -68,8 +68,6 @@ with builtins; { aria2 usbutils numbat - - alejandra ]; }; diff --git a/modules/shell/helix.nix b/modules/shell/helix.nix index 66fb716..2929e9b 100644 --- a/modules/shell/helix.nix +++ b/modules/shell/helix.nix @@ -62,6 +62,14 @@ name = "nu"; language-servers = ["nu-builtin-lsp"]; } + { + name = "nix"; + formatter = { + command = "${pkgs.alejandra}/bin/alejandra"; + args = ["--quiet"]; + }; + auto-format = true; + } ]; }; };