Skip to content

Commit

Permalink
tweak(treesit-auto): add Nix, use the treesit-auto-langs variable
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 26, 2023
1 parent 7c8635b commit 600691e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@
:custom
(treesit-auto-install 'prompt)
:config
;; Install all languages when calling `treesit-auto-install-all'
(setq treesit-language-source-alist (treesit-auto--build-treesit-source-alist)))
(push (make-treesit-auto-recipe
:lang 'nix
:ts-mode 'nix-ts-mode
:remap 'nix-mode
: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)))

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

0 comments on commit 600691e

Please sign in to comment.