;; -*- lexical-binding: t; -*- (use-package treesit :straight (:type built-in) :config (setq treesit-language-source-alist '((bash "https://github.com/tree-sitter/tree-sitter-bash") (cmake "https://github.com/uyha/tree-sitter-cmake") (css "https://github.com/tree-sitter/tree-sitter-css") (elisp "https://github.com/Wilfred/tree-sitter-elisp") (go "https://github.com/tree-sitter/tree-sitter-go") (html "https://github.com/tree-sitter/tree-sitter-html") (javascript "https://github.com/tree-sitter/tree-sitter-javascript" "master" "src") (json "https://github.com/tree-sitter/tree-sitter-json") (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") (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") (astro "https://github.com/virchau13/tree-sitter-astro"))) (defun treesit-install-all-grammars () (interactive) (dolist (lang (mapcar #'car treesit-language-source-alist)) (treesit-install-language-grammar lang)))) (provide 'init-treesit)