You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is happening because buf_highlight_references is being called even when buf_should_illuminate(bufnr) is false (in engine.lua). There is a check for this at the start of the refresh_references function but the value that buf_should_illuminate evaluates to must be different when the callback for the internal timer is executed.
When hovering over a reference and executing the
:IlluminatePause
command, existing highlights are not immediately cleared.To Reproduce
i
to enter insert mode and enter the textabc def abc
.0
to position the cursor at the start of the line.abc
are now highlighted.:IlluminatePause
abc
flicker but then stay in a highlighted state until the cursor is moved.Minimal config: (save as
init.lua
)Output from
:IlluminateDebug
Expected behavior
All currently highlighted references should be cleared when
:IlluminatePause
is issued, without having to move the cursor.Additional context
Issue seen on Neovim 0.10.1 and 0.9.5.
The text was updated successfully, but these errors were encountered: