From 2462e163824e25a8fba939988c0c290f64ae2f9f Mon Sep 17 00:00:00 2001 From: notohh Date: Thu, 1 Feb 2024 17:49:02 -0500 Subject: [PATCH] flake.nix: add prettier hook --- flake.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 5d32981..eaef8c3 100755 --- a/flake.nix +++ b/flake.nix @@ -63,6 +63,10 @@ enable = true; excludes = ["overlays.nix"]; }; + prettier = { + enable = true; + files = "\\.(js|ts|md)$"; + }; }; }; }; @@ -72,13 +76,8 @@ packages = with pkgs; [ git sops - alejandra - statix - deadnix - stylua yaml-language-server lua-language-server - nodePackages.typescript-language-server ]; }; formatter.${system} = pkgs.alejandra;