Closed loafofpiecrust closed 3 years ago
This is probably unrelated to #45, as spell-fu-mode
seems to use overlays.
spell-fu
relies on spell-fu-faces-include
, which defaults to '(font-lock-comment-face font-lock-doc-face font-lock-string-face)
. It probably needs a more generic mechanism to specify regions to spell-check. For now, this should be enough:
(setq-default spell-fu-faces-include
'(tree-sitter-hl-face:comment
tree-sitter-hl-face:doc
tree-sitter-hl-face:string
font-lock-comment-face
font-lock-doc-face
font-lock-string-face))
That seems to do the trick, thanks!
If I enable
tree-sitter-hl-mode
in a buffer, it gets highlighted correctly and myTODO
andNOTE
items still get highlighted (by thehl-todo
minor mode) but the misspelled words in the buffer lose their red underline fromspell-fu-mode
. Related to #45?