From ef46569737f065f5e7abc736a366aea2d3cf96c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= <dev@felschr.com>
Date: Mon, 24 Feb 2025 11:38:31 +0100
Subject: [PATCH] style: format with typstyle

---
 .helix/languages.toml | 5 +++++
 flake.nix             | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.helix/languages.toml b/.helix/languages.toml
index e5e9271..e9b85ff 100644
--- a/.helix/languages.toml
+++ b/.helix/languages.toml
@@ -1,3 +1,8 @@
 [[language]]
 name = "nix"
 formatter = { command = "nixfmt" }
+
+[[language]]
+name = "typst"
+formatter = { command = "typstyle" }
+auto-format = true
diff --git a/flake.nix b/flake.nix
index e3e3928..b32f6b2 100644
--- a/flake.nix
+++ b/flake.nix
@@ -84,7 +84,7 @@
           inherit (commonArgs) fontPaths virtualPaths;
           packages = [
             watch-script
-            pkgs.typstfmt
+            pkgs.typstyle
             pkgs.tinymist
 
             pkgs.nixfmt-rfc-style