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.
This commit is contained in:
@@ -60,14 +60,7 @@
|
|||||||
;; at least once per installation or while changing this list
|
;; at least once per installation or while changing this list
|
||||||
(treesit-language-source-alist
|
(treesit-language-source-alist
|
||||||
'((heex "https://github.com/phoenixframework/tree-sitter-heex")
|
'((heex "https://github.com/phoenixframework/tree-sitter-heex")
|
||||||
(elixir "https://github.com/elixir-lang/tree-sitter-elixir")
|
(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)))
|
|
||||||
(major-mode-remap-alist
|
(major-mode-remap-alist
|
||||||
'((elixir-mode . elixir-ts-mode)))
|
'((elixir-mode . elixir-ts-mode)))
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user