diff --git a/.config/kak-tree-sitter/config.toml b/.config/kak-tree-sitter/config.toml index a8ec759a..57f20fb8 100644 --- a/.config/kak-tree-sitter/config.toml +++ b/.config/kak-tree-sitter/config.toml @@ -205,3 +205,27 @@ pin = "fed3edcab70b31b416eb31c2ccf4a979c120d640" [language.bibtex.queries] path = "runtime/queries/bibtex" + +# latex +# latex +[grammar.latex.source.git] +url = "https://github.com/latex-lsp/tree-sitter-latex" +pin = "8c75e93cd08ccb7ce1ccab22c1fbd6360e3bcea6" + +[grammar.latex] +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", "latex.so"] +link_flags = ["-O3"] + +[language.latex.queries.source.git] +url = "https://git.sr.ht/~ficd/tree-sitter-latex" +pin = "e08d2433fbbf455fe0e86aad8993c43a301baac7" + +[language.latex.queries] +path = "queries" + +