From 340bb92f25d9fd5050229b728c3d8c0935a0a2f7 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Tue, 4 Mar 2025 11:20:25 +0100 Subject: [PATCH] Helix: typst config --- modules/hm/helix.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/modules/hm/helix.nix b/modules/hm/helix.nix index 1912f52..6369556 100644 --- a/modules/hm/helix.nix +++ b/modules/hm/helix.nix @@ -15,10 +15,17 @@ }; programs.helix = { enable = true; - languages.language = [{ - name = "nix"; - auto-format = true; - }]; + languages.language = [ + { + name = "nix"; + auto-format = true; + } + { + name = "typst"; + auto-format = true; + formatter.command = "typstyle"; + } + ]; languages.language-server = { nil.config.nil = { formatting.command = [ "nixpkgs-fmt" ];