diff --git a/.config/kak-tree-sitter/config.toml b/.config/kak-tree-sitter/config.toml index 7a12c9a2..1cc07bb9 100644 --- a/.config/kak-tree-sitter/config.toml +++ b/.config/kak-tree-sitter/config.toml @@ -12,6 +12,31 @@ groups = [ "markup.list", ] +# mermaid + +[language.mermaid] +aliases = ["mmd"] + +[grammar.mermaid.source.git] +url = "https://github.com/monaqa/tree-sitter-mermaid" +pin = "d787c66276e7e95899230539f556e8b83ee16f6d" + +[grammar.mermaid] +path = "src" +compile = "cc" +compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."] +compile_flags = ["-O3"] +link = "cc" +link_args = ["-shared", "-fpic", "parser.o", "-o", "mermaid.so"] +link_flags = ["-O3"] + +[language.mermaid.queries.source.git] +url = "https://github.com/helix-editor/helix" +pin = "036729211a94d058b835f5ee212ab15de83bc037" + +[language.mermaid.queries] +path = "runtime/queries/mermaid" + [language.typst] aliases = ["typ", "typc"] @@ -183,47 +208,3 @@ pin = "fed3edcab70b31b416eb31c2ccf4a979c120d640" [language.bibtex.queries] path = "runtime/queries/bibtex" - -# mermaid - -[language.mermaid.grammar.source.git] -url = "https://github.com/monaqa/tree-sitter-mermaid" -pin = "d787c66276e7e95899230539f556e8b83ee16f6d" - - -[language.mermaid.grammar] -path = "src" -compile = "cc" -compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."] -compile_flags = ["-O3"] -link = "cc" -link_args = ["-shared", "-fpic", "parser.o", "-o", "mermaid.so"] -link_flags = ["-O3"] - -[language.mermaid.queries.source.git] -url = "https://github.com/helix-editor/helix" -pin = "036729211a94d058b835f5ee212ab15de83bc037" - -[language.mermaid.queries] -path = "runtime/queries/mermaid" - -# gamer -[grammar.gamer.source.git] -url = "https://github.com/alemuller/tree-sitter-gamer" -pin = "a4b9187417d6be349ee5fd4b6e77b4172c6827dd" - -[grammar.gamer] -path = "src" -compile = "cc" -compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."] -compile_flags = ["-O3"] -link = "cc" -link_args = ["-shared", "-fpic", "parser.o", "-o", "gamer.so"] -link_flags = ["-O3"] - -[language.gamer.queries.source.git] -url = "https://github.com/helix-editor/helix" -pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb" - -[language.gamer.queries] -path = "runtime/queries/gamer"