diff --git a/config/.config/kak-tree-sitter/config.toml b/config/.config/kak-tree-sitter/config.toml index 1cadefa..24a5b6f 100644 --- a/config/.config/kak-tree-sitter/config.toml +++ b/config/.config/kak-tree-sitter/config.toml @@ -21,3 +21,24 @@ # [language.lua.queries] # # path = "runtime/queries/lua" # path = "queries/lua" + +# typst +[language.typst.grammar.source.git] +url = "https://github.com/uben0/tree-sitter-typst" +pin = "46cf4ded12ee974a70bf8457263b67ad7ee0379d" + +[language.typst.grammar] +path = "src" +compile = "cc" +compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."] +compile_flags = ["-O3"] +link = "cc" +link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "typst.so"] +link_flags = ["-O3"] + +[language.typst.queries.source.git] +url = "https://github.com/uben0/tree-sitter-typst" +pin = "46cf4ded12ee974a70bf8457263b67ad7ee0379d" + +[language.typst.queries] +path = "queries/typst" diff --git a/config/.config/kak/kakrc b/config/.config/kak/kakrc index 2bb53fb..678b24d 100644 --- a/config/.config/kak/kakrc +++ b/config/.config/kak/kakrc @@ -25,6 +25,7 @@ plug "gustavo-hms/luar" %{ } } +plug "custom-filetypes" load-path "~/.config/kak/al" # # Color Themes plug "tinted-theming/base16-kakoune" theme plug "https://git.sr.ht/~hadronized/kakoune-tree-sitter-themes" theme