* lisp/progmodes/go-ts-mode.el: Use treesit-language-available-p.
treesit-ready-p does more checks than language grammar availability.
This commit is contained in:
parent
56cd810b9d
commit
59365f9285
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 t)
|
||||
(if (treesit-language-available-p 'gomod)
|
||||
(add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode)))
|
||||
|
||||
(provide 'go-ts-mode)
|
||||
|
|
Loading…
Add table
Reference in a new issue