From 4e63ebed38d5e89f85e6d4159440b1e927ba7672 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Thu, 21 Dec 2023 16:11:01 +0100 Subject: [PATCH] helix: added shfmt --- roles/home/helix.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/home/helix.nix b/roles/home/helix.nix index 778c487..c58782e 100644 --- a/roles/home/helix.nix +++ b/roles/home/helix.nix @@ -53,6 +53,11 @@ in [[language]] name = "python" formatter = { command = "black", args = [ "-" ] } + + [[language]] + name = "bash" + indent = { tab-width = 2, unit = " " } + formatter = { command = 'shfmt', args = ["-i", "2"] } ''; packages = with pkgs.unstablePkgs; [ @@ -65,6 +70,7 @@ in nixpkgs-fmt ruff shellcheck + shfmt ] ++ pythonPkgs ++ nodePkgs; }; }