* eglot.el (eglot--highlight-piggyback): Add modification-hooks
property to the created overlays.
Co-authored-by: João Távora <joaotavora@gmail.com>
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/626
(eglot--range-region range)))
(let ((ov (make-overlay beg end)))
(overlay-put ov 'face 'eglot-highlight-symbol-face)
- (overlay-put ov 'evaporate t)
+ (overlay-put ov 'modification-hooks
+ `(,(lambda (o &rest _) (delete-overlay o))))
ov)))
highlights))))
:deferred :textDocument/documentHighlight)