-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy path.ts-setup.el
More file actions
20 lines (19 loc) · 1.41 KB
/
.ts-setup.el
File metadata and controls
20 lines (19 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;;-*- 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"))
(go . ("https://github.com/tree-sitter/tree-sitter-go" "v0.20.0"))
(ocaml . ("https://github.com/tree-sitter/tree-sitter-ocaml" "v0.24.2" "grammars/ocaml/src"))
(ocaml-interface . ("https://github.com/tree-sitter/tree-sitter-ocaml" "v0.24.2" "grammars/interface/src"))
(ocaml_type . ("https://github.com/tree-sitter/tree-sitter-ocaml" "v0.24.2" "grammars/type/src"))
(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)))