Hacker News new | ask | show | jobs
by treeblah 1006 days ago
I found this snippet in one of Mickey's earlier tree-sitter posts that works great. It does require searching through the tree-sitter repo to make sure your paths are correct:

  (setq treesit-language-source-alist
      '((typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
        (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")))

  (mapc #'treesit-install-language-grammar (mapcar #'car treesit-language-source-alist))
1 comments

For the record, it's in Mickey's How to Get Started with Tree-Sitter post:

https://www.masteringemacs.org/article/how-to-get-started-tr...