diff --git a/.config/kak-tree-sitter/config.toml b/.config/kak-tree-sitter/config.toml new file mode 100644 index 00000000..503ee9af --- /dev/null +++ b/.config/kak-tree-sitter/config.toml @@ -0,0 +1,60 @@ +[highlight] + +groups = [ + "punctuation.bracket", + "punctuation.delimiter", + "constant.builtin", + "constant.character.escape", + "constant.numeric", + "string.special.url", + "comment.block.documentation", + "keyword.operator", + "markup.list", +] + +[language.typst] +aliases = ["typ"] + +[language.typst.grammar.source.git] +url = "https://github.com/uben0/tree-sitter-typst" +pin = "13863ddcbaa7b68ee6221cea2e3143415e64aea4" + +[language.typst.queries.source.git] +url = "https://github.com/helix-editor/helix" +pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb" + +[language.typst.queries] +path = "runtime/queries/typst" + +[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.kdl] +# aliases = ["kdl"] + +[language.kdl.grammar.source.git] +url = "https://github.com/amaanq/tree-sitter-kdl" +pin = "3ca569b9f9af43593c24f9e7a21f02f43a13bb88" + +[language.kdl.queries.source.git] +url = "https://github.com/helix-editor/helix" +pin = "5c325fe342c26f31df495ec478a1d427270e8e42" + +[language.kdl.queries] +path = "runtime/queries/kdl" + +[language.kdl.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", "kdl.so"] +link_flags = ["-O3"] + diff --git a/.config/yadm/tracked b/.config/yadm/tracked index 1fb89ad5..adabab7b 100644 --- a/.config/yadm/tracked +++ b/.config/yadm/tracked @@ -71,3 +71,4 @@ .config/rbw .config/nvchecker .config/kak +.config/kak-tree-sitter