forked from mickeynp/combobulate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ts-setup.el
16 lines (15 loc) · 1.01 KB
/
.ts-setup.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
;;-*- mode: emacs-lisp; -*-
(let ((treesit-language-source-alist
'((css . ("https://github.com/tree-sitter/tree-sitter-css" "v0.20.0"))
(html . ("https://github.com/tree-sitter/tree-sitter-html" "v0.20.1"))
(javascript . ("https://github.com/tree-sitter/tree-sitter-javascript" "v0.20.1" "src"))
(json . ("https://github.com/tree-sitter/tree-sitter-json" "v0.20.2"))
(python . ("https://github.com/tree-sitter/tree-sitter-python" "v0.20.4"))
(toml "https://github.com/tree-sitter/tree-sitter-toml")
(tsx . ("https://github.com/tree-sitter/tree-sitter-typescript" "v0.20.3" "tsx/src"))
(typescript . ("https://github.com/tree-sitter/tree-sitter-typescript" "v0.20.3" "typescript/src"))
(yaml . ("https://github.com/ikatyang/tree-sitter-yaml" "v0.5.0")))))
(message "* Installing tree-sitter grammars...")
(pcase-dolist (`(,lang . ,rest) treesit-language-source-alist)
(message "** Installing %s..." lang)
(treesit-install-language-grammar lang)))