declancm / cinnamon.nvim

Smooth scrolling for ANY command 🤯. A Neovim plugin written in Lua!
MIT License
363 stars 6 forks source link

Setting to toggle the smooth scrolling #17

Closed WilliamHsieh closed 1 year ago

WilliamHsieh commented 2 years ago

Is there a setting / function to toggle the smooth scrolling? I would like to toggle the smooth scrolling on my need. Thank's!

kvngvikram commented 2 years ago

I need the same thing. I generally open large data files in vim. To quickly inspect I just keep Ctrl-F pressed, which is basically many Ctrl-F together. Now with cinnamon, the scrolling happens slowly, which is fine but until all the Ctrl-Fs are done, I am locked out of vim. So a toggle would be very helpful for me

declancm commented 1 year ago

Hi! I added a config option to disable the function. This can be used to toggle the plugin:

lua require('cinnamon.config').disabled = not require('cinnamon.config').disabled

Hopefully this works for you both :)