ctucx.git: nixfiles

ctucx' nixfiles

commit b414f93d1fa1d4111e19133cd7188b7a93d24108
parent 9a6aa0b5d2e882081f21c2e1078afc021ec46c9d
Author: Katja (ctucx) <git@ctu.cx>
Date: Thu, 27 Mar 2025 16:56:12 +0100

configurations/homeManager/programs/typst: add `tinymist`-lsp to helix
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/configurations/homeManager/programs/typst.nix b/configurations/homeManager/programs/typst.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }:
+{ lib, pkgs, ... }:
 
 {
 

@@ -7,4 +7,16 @@
     typst-live
   ];
 
+  programs.helix.languages = {
+    language-server.tinymist = {
+      command = lib.getExe pkgs.unstable.tinymist;
+      config = {
+        preview.background.enabled = true;
+        preview.background.args = [ "--data-plane-host=127.0.0.1:8123" ];
+        fontPaths = [ "./fonts" ];
+        exportPdf = "onSave";
+      };
+    };
+  };
+
 }