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
Sorry for missing this for... several weeks. The sample config you sent worked well and I was able to reproduce it on my machine. Unfortunately, I have no clue where/why exactly this happened, and I vaguely remember dealing with something like this in a previous issue. I'll take another look; note to myself is to check the save/restore view calls.
I did some snooping around with the minimal configuration and I believe I have figured out the problem. The forced redraw in numbertoggle autocommand is nuking the highlights from the buffer; removing it resolves the issue. This also applies to the highlight when, you enter command mode after creating a visual selection, e.g. :foobarbaz in nvim -u NONE vs. nvim -u minimal_config.lua. I'm not entirely sure what the fix is here, as I imagine the forced redraw is to ensure that the toggled line numbers update properly whenever the mode changes.
Checklist
:h nvim-surround
to see if there might be any relevant information there?Neovim Version
NVIM v0.10.0-dev-2274+g1d5f86f69-Homebrew
Plugin Version
Tagged (Stable)
Minimal Configuration
Sample Buffer
test test
test test
Keystroke Sequence
ejS
Expected behavior
This is what happens after I comment out everything after line 23 in the setup:
Actual behavior
Additional context
The surrounding still works, this is only a visual issue in the "pending" phase.
The code is from https://github.com/sitiom/nvim-numbertoggle/blob/main/plugin/numbertoggle.lua, but I copied it for easier reproduction
The text was updated successfully, but these errors were encountered: