feat: typst

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-10-14 18:31:46 -05:00
parent 4d7f8907cf
commit 8b9f7f8670
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 19 additions and 0 deletions

View File

@ -197,6 +197,17 @@
args = ["fmt"];
};
}
{
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";
}
];
};
themes = {
@ -225,5 +236,12 @@
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";
}
];
}

View File

@ -23,6 +23,7 @@
version = grammar.rev;
buildInputs = [pkgs.helix pkgs.git];
src = source;
dontInstall = true;
buildPhase = ''
runHook preBuild