Skip to content

Commit

Permalink
fix(treesit-auto): mark only non-installed grammar for install
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Dec 9, 2023
1 parent 483224c commit fd0477f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
:url "https://github.com/nix-community/tree-sitter-nix"
:ext "\\.nix\\'")
treesit-auto-recipe-list)
(setq treesit-auto-langs (seq-map #'treesit-auto-recipe-lang treesit-auto-recipe-list)))
;; Setup `treesit-auto-langs' to include only the languages with non-installed
;; grammars from all supported languages.
(let ((langs (mapcar #'treesit-auto-recipe-lang treesit-auto-recipe-list)))
(setq treesit-auto-langs (seq-difference (seq-filter #'treesit-language-available-p langs) langs))))

(use-package awk-ts-mode
:straight t
Expand Down

0 comments on commit fd0477f

Please sign in to comment.