Don’t signal warning when loading go-ts-mode.el without grammar
* lisp/progmodes/go-ts-mode.el: Add a QUIET flag to the call of treesit-ready-p, so that it doesn't signal a warning if go-mod (tree-sitter grammar) is not available.
This commit is contained in:
parent
b06d551966
commit
56cd810b9d
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ what the parent of the node would be if it were a node."
|
|||
|
||||
(treesit-major-mode-setup)))
|
||||
|
||||
(if (treesit-ready-p 'gomod)
|
||||
(if (treesit-ready-p 'gomod t)
|
||||
(add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode)))
|
||||
|
||||
(provide 'go-ts-mode)
|
||||
|
|
Loading…
Add table
Reference in a new issue