diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/emacs/init.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 8db76b0..df12a7b 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -415,8 +415,13 @@ indentation-width.") or not the grammar is already installed, making it useful for updating existing grammars." (interactive) - (dolist (spec treesit-language-source-alist) - (treesit-install-language-grammar (car spec)))) + (async-start + `(lambda () + ,(async-inject-variables "\\`treesit-language-source-alist\\'") + (dolist (spec treesit-language-source-alist) + (treesit-install-language-grammar (car spec)))) + (lambda (message) + (message "Done syncing Tree-Sitter grammars")))) (thread-last (mapcar #'car treesit-language-source-alist) |