Weird mini.animate behavior #2181
-
Contributing guidelines
Module(s)mini.animate QuestionI've wanted to try I've fixed my <cmd>lua vim.cmd('normal! <C-f>'); MiniAnimate.execute_after('scroll', 'normal! zz')<cr>"The problem is that I still have a weird animation behavior when jumping from a start of a document to center: 2025-12-17.19-04-54.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Yeah, I can reproduce. The reason this seems to happen is that centering afterwards itself triggers an animation. To be perfectly honest, scrolling animation from 'mini.animate' is far from perfect if you want to follow it with My suggestion would be to either not do the centering or disable scroll animation entirely (however painful it is for me to say this). |
Beta Was this translation helpful? Give feedback.
Yeah, I can reproduce. The reason this seems to happen is that centering afterwards itself triggers an animation.
To be perfectly honest, scrolling animation from 'mini.animate' is far from perfect if you want to follow it with
zz. The suggested solution somewhat works withnandN, but might have troubles with<C-f>/<C-d>/ etc.My suggestion would be to either not do the centering or disable scroll animation entirely (however painful it is for me to say this).