From 0d3b2888fe111f46ab68474977503b9b564900d5 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sat, 11 Feb 2023 02:23:24 +0100 Subject: [PATCH] helix: Add nixpkgs-fmt as formatter --- roles/home/helix.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/home/helix.nix b/roles/home/helix.nix index 06d0cc5..7925a84 100644 --- a/roles/home/helix.nix +++ b/roles/home/helix.nix @@ -24,6 +24,13 @@ [editor.indent-guides] render = true + + ''; + + file.".config/helix/languages.toml".text = '' + [[language]] + name = "nix" + formatter = { command = "nixpkgs-fmt" } ''; packages = with pkgs.unstable; [ @@ -37,6 +44,7 @@ nodePackages.typescript nodePackages.svelte-language-server swiProlog + nixpkgs-fmt ]; }; }