fidget.nvim icon indicating copy to clipboard operation
fidget.nvim copied to clipboard

display repeatedly jumps to left

Open humblehacker opened this issue 1 year ago • 3 comments

Just discovered fidget after messing with kickstart.nvim. I added it to my config and fired up nvim (in neovide), and when the notifications started appearing I noticed the whole display will very briefly jump to the left repeatedly. It's a bit distracting. Hopefully there's some config option that I'm missing. Here's what it looks like. It's most noticeable at about the 6 second mark.

https://github.com/j-hui/fidget.nvim/assets/117582/701545ef-e8e1-46dc-84fb-6ea9500eb7e1

humblehacker avatar Mar 25 '24 17:03 humblehacker

Looks like this is specific to neovide. It doesn't happen for me in the terminal, and I found this neovide discussion.

humblehacker avatar Mar 25 '24 17:03 humblehacker

Similar thing happens with gnvim too.

I haven't dug too deep into the code yet, but I suspect that the anchor position doesn't stay stable, or that when the width of the window chagnes, nvim sends a flush even in between the window size change and the position change.

vhakulinen avatar May 29 '24 16:05 vhakulinen

The bug isn't in fidget.nvim, but in GUI(s). They must keep the windows (grids in GUI terms) anchored to their position when they are resized.

For reference, the fix to gnvim: https://github.com/vhakulinen/gnvim/commit/24e8a74e76ff8f62ea2f98e3c363efb48d489e46

vhakulinen avatar Jan 01 '25 18:01 vhakulinen