Avoid warning when loading 'go-ts-mode'
* lisp/progmodes/go-ts-mode.el (treesit-ready-p): Silence the warning if the gomod language library is not installed. (Bug#77213)
This commit is contained in:
parent
a702f29a00
commit
26873d5028
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ what the parent of the node would be if it were a node."
|
|||
|
||||
(derived-mode-add-parents 'go-mod-ts-mode '(go-mod-mode))
|
||||
|
||||
(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