echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.54k stars 175 forks source link

Configure Mini Animate to not Halt Cursor Movement if Animation is not Done #881

Closed xeon826 closed 2 months ago

xeon826 commented 2 months ago

Contributing guidelines

Module(s)

mini.animate

Description

If I press a movement key before the animation finishes, it's ignored. I could turn down the animation time but is there a way to configure it so that the following movement is not ignored if it happens during the previous movements animation?

For example you could try (from the top of a large file) gg G $ In quick succession, $ will be ignored.

echasnovski commented 2 months ago

If I understood correctly the question, it is more about scroll animation. If that is so, then the answer is "I don't think so".

The scroll animation is implemented with side effects meaning that window view is actually changing to achieve the visual effect. As the animation is in place, it only reacts to other scrolling keys.

This also seems like a problem similar (or exactly like) the one in #715.

So all in all, I don't think it is going to get supported.