7 ms·
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 pat
by treeblah 3y 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))
- nanna 3y agoFor the record, it's in Mickey's How to Get Started with Tree-Sitter post: https://www.masteringemacs.org/article/how-to-get-started-tree-sitter#compiling-and-installing-with-the-builtin-method-in-emacs https://www.masteringemacs.org/article/how-to-get-started-tr...