Home

helix.drv @main - refs - log -
-
https://git.jolheiser.com/helix.drv.git
My Helix configuration as a Nix derivation
tree log patch
feat: typst Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmUrJOIACgkQuFOtpdp7 v3qDEA/+It/VVTxwUWpx2ydhrE3mqIbL30UpTQrm/c5Yj2o1/a6eBB4yHoCjAwJ5 FZLco/u41riu/8UpZuvLB5D6QgCOyIi7IPXj5Ki3kcw8EFwXGYSsJzZgUTAFt1Qf OV8r1QwsTOtX7w+uMaRfoGht91Q6mPc/xKItqI56Tp3sjs0QuMnflG9L97pDZIiz wX7mE/nd1PPw7zj3bVijJu1rMWhrISwXWCx5tY+I0OAQcJahGhgXuFvLHoDOVpzi gmvt7Pn9TUWDsrtKJ6Y2p3JQ/7adNXe/t1ya0QKVgtxnwXQDNpeYjHozR46RcJfZ MkxmgFSd+PNQU3ctnNJFrDD3QY5O2Rm3K7j0656M9ZdJw1+5H3h+T00taFq27lzi 0co54h/JTOxgSLpIiLkfzTxrB11Lf8H97wHAJ3AHVcNc9/YFjM3CGPwihZh4KfbN hTdkzqFxN4ytCDbHVKu3U2S9r3ublNGtMANTV9ty/Nnuj0y0aK2rE+QZfx4Meifq FSTDGj9Nq6PzDhEF3p7MjaqVbCMZRugRj5eDhLJYXfAH30d2xefd0taaZJXMfkhO cyKbtRY0MN2mCLSXlT1NINFRNA1jqVtXkP4sUqUHMCihsWIFKp7WabWTGFlct/7Z SmkbBnAoxcBvMdnwOU681uA00vnc8R/K8dpLmccHqzBmmCfAing= =inhR -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
2 changed files, 20 additions(+), 0 deletions(-)
M config.nix -> config.nix
diff --git a/config.nix b/config.nix
index 9de08109054709d0704c4ef6f5841db422f90dce..4b190c9c4a15719749d6964988c92ff08d3a3c2f 100644
--- a/config.nix
+++ b/config.nix
@@ -198,6 +198,18 @@           args = ["fmt"];
         };
       }
 {pkgs ? import <nixpkgs> {}}: {
+      color-modes = true;
+        name = "typst";
+        auto-format = true;
+        scope = "source.typst";
+        injection-regex = "typst";
+        file-types = ["typ"];
+        roots = [];
+        comment-token = "//";
+        language-server.command = "${typst-lsp}/bin/typst-lsp";
+        formatter.command = "${typst-fmt}/bin/typstfmt";
+      }
+{pkgs ? import <nixpkgs> {}}: {
         C-c = ":config-open";
   };
   themes = {
@@ -225,6 +237,13 @@       url = "https://github.com/vrischmann/tree-sitter-templ";
       rev = "9f63037ad08a58050d0582ef1ae0009bd0fbf2f1";
       sha256 = "sha256-AGZm2D8rW08gMyZ8dSZyAgqgyl/lKiZxBOFDPX0LY4I=";
       queries = "queries/templ";
+    }
+    {
+      name = "typst";
+      url = "https://github.com/uben0/tree-sitter-typst";
+      rev = "791cac478226e3e78809b67ff856010bde709594";
+      sha256 = "sha256-YI+EyLKvw1qg122aH1UCggTQtDT8TioSau6GGRwWktc=";
+      queries = "queries";
     }
   ];
 }
M flake.nix -> flake.nix
diff --git a/flake.nix b/flake.nix
index 84723eb865d141df8ac58a6cee71a64d7e2f3e73..ffc8a65f525b487ef5bf45621f083f6b76f9648a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -23,6 +23,7 @@         pname = "helix-tree-sitter-grammar-${grammar.name}";
         version = grammar.rev;
         buildInputs = [pkgs.helix pkgs.git];
         src = source;
+        dontInstall = true;
         buildPhase = ''
           runHook preBuild