From 8ad0f6e78f1896ecb7edac3e243d47cf0b8c2c37 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Thu, 7 Sep 2023 12:07:38 +0200 Subject: [PATCH] Add Typescript and TSX tree-sitter grammars --- init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 20aef2b..0b9b4bf 100644 --- a/init.el +++ b/init.el @@ -578,7 +578,9 @@ (python "https://github.com/tree-sitter/tree-sitter-python") (rust "https://github.com/tree-sitter/tree-sitter-rust") (toml "https://github.com/tree-sitter/tree-sitter-toml") - (yaml "https://github.com/ikatyang/tree-sitter-yaml"))) + (yaml "https://github.com/ikatyang/tree-sitter-yaml") + (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src") + (typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src"))) (add-to-list 'treesit-language-source-alist grammar) ;; Only install `grammar' if we don't already have it ;; installed. However, if you want to *update* a grammar then