Run ispell on text nodes, this works using treesit
built-in package.
Clone this repo somewhere, and add this to your config:
(add-to-list 'load-path "path where the repo was cloned")
(require 'treesit-ispell)
(use-package treesit-ispell
:straight (treesit-ispell
:type git
:host github
:repo "erickgnavar/treesit-ispell.el"))
(use-package treesit-ispell
:ensure t)
M-x treesit-ispell-run-at-point
to use the node at the current position
It can also be attached to a keybinding, for example:
(global-set-key (kbd "C-x C-s") 'treesit-ispell-run-at-point)