From e8b4144429528c4bf07228bdace9855b55e07650 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Thu, 19 Jun 2025 18:40:14 -0400 Subject: [PATCH] AutoYADM commit: 2025-06-19 18:40:14 --- .config/kak-tree-sitter/config.toml | 64 +++++++++++------------ .config/kak/autoload/filetype/mermaid.kak | 3 ++ 2 files changed, 35 insertions(+), 32 deletions(-) create mode 100644 .config/kak/autoload/filetype/mermaid.kak diff --git a/.config/kak-tree-sitter/config.toml b/.config/kak-tree-sitter/config.toml index c15b0c5d..ea4060f0 100644 --- a/.config/kak-tree-sitter/config.toml +++ b/.config/kak-tree-sitter/config.toml @@ -14,11 +14,11 @@ groups = [ # mermaid -[language.mermaid.grammar.source.git] +[grammar.mermaid.source.git] url = "https://github.com/monaqa/tree-sitter-mermaid" pin = "d787c66276e7e95899230539f556e8b83ee16f6d" -[language.mermaid.grammar] +[grammar.mermaid] path = "src" compile = "cc" compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."] @@ -37,7 +37,7 @@ path = "runtime/queries/mermaid" [language.typst] aliases = ["typ", "typc"] -[language.typst.grammar.source.git] +[grammar.typst.source.git] url = "https://github.com/uben0/tree-sitter-typst" pin = "13863ddcbaa7b68ee6221cea2e3143415e64aea4" @@ -48,7 +48,7 @@ pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb" [language.typst.queries] path = "runtime/queries/typst" -[language.typst.grammar] +[grammar.typst] path = "src" compile = "cc" compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."] @@ -57,7 +57,7 @@ link = "cc" link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "typst.so"] link_flags = ["-O3"] -[language.kdl.grammar.source.git] +[grammar.kdl.source.git] url = "https://github.com/amaanq/tree-sitter-kdl" pin = "3ca569b9f9af43593c24f9e7a21f02f43a13bb88" @@ -68,7 +68,7 @@ pin = "5c325fe342c26f31df495ec478a1d427270e8e42" [language.kdl.queries] path = "runtime/queries/kdl" -[language.kdl.grammar] +[grammar.kdl] path = "src" compile = "cc" compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."] @@ -77,32 +77,32 @@ link = "cc" link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "kdl.so"] link_flags = ["-O3"] -[language.jsonc.grammar.source.git] -url = "https://github.com/tree-sitter/tree-sitter-json" -pin = "73076754005a460947cafe8e03a8cf5fa4fa2938" +# [grammar.jsonc.source.git] +# url = "https://github.com/tree-sitter/tree-sitter-json" +# pin = "73076754005a460947cafe8e03a8cf5fa4fa2938" -[language.jsonc.grammar] -path = "src" -compile = "cc" -compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."] -compile_flags = ["-O3"] -link = "cc" -link_args = ["-shared", "-fpic", "parser.o", "-o", "jsonc.so"] -link_flags = ["-O3"] +# [grammar.jsonc] +# path = "src" +# compile = "cc" +# compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."] +# compile_flags = ["-O3"] +# link = "cc" +# link_args = ["-shared", "-fpic", "parser.o", "-o", "jsonc.so"] +# link_flags = ["-O3"] -[language.jsonc.queries.source.git] -url = "https://github.com/helix-editor/helix" -pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb" +# [language.jsonc.queries.source.git] +# url = "https://github.com/helix-editor/helix" +# pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb" -[language.jsonc.queries] -path = "runtime/queries/jsonc" +# [language.jsonc.queries] +# path = "runtime/queries/jsonc" # ini -[language.ini.grammar.source.git] +[grammar.ini.source.git] url = "https://github.com/justinmk/tree-sitter-ini" pin = "32b31863f222bf22eb43b07d4e9be8017e36fb31" -[language.ini.grammar] +[grammar.ini] path = "src" compile = "cc" compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."] @@ -121,11 +121,11 @@ path = "runtime/queries/ini" [language.just] aliases = ["justfile"] -[language.just.grammar.source.git] +[grammar.just.source.git] url = "https://github.com/poliorcetics/tree-sitter-just" pin = "8d03cfdd7ab89ff76d935827de1b93450fa0ec0a" -[language.just.grammar] +[grammar.just] path = "src" compile = "cc" compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."] @@ -142,11 +142,11 @@ pin = "f6878f62f74430cff188e7978d06c5ed143179e9" path = "runtime/queries/just" # typescript -[language.typescript.grammar.source.git] +[grammar.typescript.source.git] url = "https://github.com/tree-sitter/tree-sitter-typescript" pin = "b1bf4825d9eaa0f3bdeb1e52f099533328acfbdf" -[language.typescript.grammar] +[grammar.typescript] path = "typescript/src" compile = "cc" compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."] @@ -164,11 +164,11 @@ path = "runtime/queries/typescript" # taskwarrior -[language.task.grammar.source.git] +[grammar.task.source.git] url = "https://github.com/alexanderbrevig/tree-sitter-task" pin = "f2cb435c5dbf3ee19493e224485d977cb2d36d8b" -[language.task.grammar] +[grammar.task] path = "src" compile = "cc" compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."] @@ -186,11 +186,11 @@ path = "runtime/queries/task" # bibtex -[language.bibtex.grammar.source.git] +[grammar.bibtex.source.git] url = "https://github.com/latex-lsp/tree-sitter-bibtex" pin = "ccfd77db0ed799b6c22c214fe9d2937f47bc8b34" -[language.bibtex.grammar] +[grammar.bibtex] path = "src" compile = "cc" compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."] diff --git a/.config/kak/autoload/filetype/mermaid.kak b/.config/kak/autoload/filetype/mermaid.kak new file mode 100644 index 00000000..4c64d1dc --- /dev/null +++ b/.config/kak/autoload/filetype/mermaid.kak @@ -0,0 +1,3 @@ +hook global BufCreate .+[.](mmd|mermaid) %{ + set-option buffer filetype mermaid +}