Add Typescript and TSX tree-sitter grammars
This commit is contained in:
parent
74f7262267
commit
8ad0f6e78f
1 changed files with 3 additions and 1 deletions
4
init.el
4
init.el
|
@ -578,7 +578,9 @@
|
||||||
(python "https://github.com/tree-sitter/tree-sitter-python")
|
(python "https://github.com/tree-sitter/tree-sitter-python")
|
||||||
(rust "https://github.com/tree-sitter/tree-sitter-rust")
|
(rust "https://github.com/tree-sitter/tree-sitter-rust")
|
||||||
(toml "https://github.com/tree-sitter/tree-sitter-toml")
|
(toml "https://github.com/tree-sitter/tree-sitter-toml")
|
||||||
(yaml "https://github.com/ikatyang/tree-sitter-yaml")))
|
(yaml "https://github.com/ikatyang/tree-sitter-yaml")
|
||||||
|
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")
|
||||||
|
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")))
|
||||||
(add-to-list 'treesit-language-source-alist grammar)
|
(add-to-list 'treesit-language-source-alist grammar)
|
||||||
;; Only install `grammar' if we don't already have it
|
;; Only install `grammar' if we don't already have it
|
||||||
;; installed. However, if you want to *update* a grammar then
|
;; installed. However, if you want to *update* a grammar then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue