Skip to content

Commit

Permalink
Re-add treesit-auto--language-source-alist
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbarclay authored Jan 24, 2023
1 parent aff1be7 commit 98f6fa8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions treesit-auto.el
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,32 @@ regardless of whether the grammar is installed or not."
:type '(alist (symbol) (function))
:group 'treesit)

(defvar treesit-auto--language-source-alist
'((bash "https://github.com/tree-sitter/tree-sitter-bash")
(c "https://github.com/tree-sitter/tree-sitter-c")
(cmake "https://github.com/uyha/tree-sitter-cmake")
(common-lisp "https://github.com/theHamsta/tree-sitter-commonlisp")
(cpp "https://github.com/tree-sitter/tree-sitter-cpp")
(css "https://github.com/tree-sitter/tree-sitter-css")
(csharp "https://github.com/tree-sitter/tree-sitter-c-sharp")
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
(go "https://github.com/tree-sitter/tree-sitter-go")
(go-mod "https://github.com/camdencheek/tree-sitter-go-mod")
(html "https://github.com/tree-sitter/tree-sitter-html")
(js . ("https://github.com/tree-sitter/tree-sitter-javascript" "master" "src"))
(json "https://github.com/tree-sitter/tree-sitter-json")
(lua "https://github.com/Azganoth/tree-sitter-lua")
(make "https://github.com/alemuller/tree-sitter-make")
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
(python "https://github.com/tree-sitter/tree-sitter-python")
(r "https://github.com/r-lib/tree-sitter-r")
(rust "https://github.com/tree-sitter/tree-sitter-rust")
(toml "https://github.com/tree-sitter/tree-sitter-toml")
(tsx . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src"))
(typescript . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src"))
(yaml "https://github.com/ikatyang/tree-sitter-yaml"))
"Default repository URLs for `treesit-install-language-grammar'.")

(defun treesit-auto--remap-language-source (language-source)
"Determine mode for LANGUAGE-SOURCE.
If the grammar is installed, remap the base mode to its
Expand Down

0 comments on commit 98f6fa8

Please sign in to comment.