How to get mouseHover events and find decoration at cursor location

How cant I get mouseHover/mouseMoved events on the document and then know if I have a decoration at cursor position?

You could use posAtCoords to find the document position and then inspect that.

1 Like