From b08e48eec9a1a61f3edcb2dd2c07bc325f9dc5a7 Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Tue, 3 Nov 2026 13:43:03 +0000 Subject: [PATCH] refactor(treesit): drop unused typescript grammars The typescript/tsx entries were nested one list too deep, so lookups for those languages could never match, and the `dolist' that installed missing grammars then errored out. Neither language is used here, so remove both entries and the installer rather than leave a broken path in the shared config. heex and elixir stay. Re-add the entries (with the correct nesting) when typescript is next used. --- config.el | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/config.el b/config.el index c5054cf..af75d50 100644 --- a/config.el +++ b/config.el @@ -60,14 +60,7 @@ ;; at least once per installation or while changing this list (treesit-language-source-alist '((heex "https://github.com/phoenixframework/tree-sitter-heex") - (elixir "https://github.com/elixir-lang/tree-sitter-elixir") - ((typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src") - (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")))) - -;; Install grammars if not present -(dolist (lang '(typescript tsx)) - (unless (treesit-language-available-p lang) - (treesit-install-language-grammar lang))) + (elixir "https://github.com/elixir-lang/tree-sitter-elixir"))) (major-mode-remap-alist '((elixir-mode . elixir-ts-mode))) )