diff --git a/.config/kak-tree-sitter/config.toml b/.config/kak-tree-sitter/config.toml index d38444fa..b5894a3c 100644 --- a/.config/kak-tree-sitter/config.toml +++ b/.config/kak-tree-sitter/config.toml @@ -119,3 +119,23 @@ pin = "f6878f62f74430cff188e7978d06c5ed143179e9" [language.just.queries] path = "runtime/queries/just" +# typescript +[language.typescript.grammar.source.git] +url = "https://github.com/tree-sitter/tree-sitter-typescript" +pin = "75b3874edb2dc714fb1fd77a32013d0f8699989f" + +[language.typescript.grammar] +path = "typescript/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", "typescript.so"] +link_flags = ["-O3"] + +[language.typescript.queries.source.git] +url = "https://github.com/helix-editor/helix" +pin = "f4b488e380e28aa36a06ad400d6656fa864ba5b7" + +[language.typescript.queries] +path = "runtime/queries/typescript"