Skip to content

Commit

Permalink
Check quietly for treesitter grammar presence
Browse files Browse the repository at this point in the history
Fixes #853
  • Loading branch information
purcell committed Nov 1, 2023
1 parent 699a47d commit 8c7aaff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/init-nix.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(progn
(defun sanityinc/set-nix-ts-auto-mode ()
(when (and (fboundp 'treesit-ready-p)
(treesit-ready-p 'nix)
(treesit-ready-p 'nix t)
(fboundp 'nix-ts-mode))
(add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-ts-mode))))
(add-hook 'after-init-hook 'sanityinc/set-nix-ts-auto-mode))
Expand Down

0 comments on commit 8c7aaff

Please sign in to comment.