From 8c7aaff5ad6a56419fc96db484f1b48f269d841f Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Wed, 1 Nov 2023 08:01:35 +0000 Subject: [PATCH] Check quietly for treesitter grammar presence Fixes #853 --- lisp/init-nix.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/init-nix.el b/lisp/init-nix.el index d0f0671cec..8c6cf01978 100644 --- a/lisp/init-nix.el +++ b/lisp/init-nix.el @@ -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))