psliwka / vim-smoothie

Smooth scrolling for Vim done right🥤
MIT License
988 stars 27 forks source link

extract command list to autoload #38

Closed toombs-caeman closed 5 months ago

toombs-caeman commented 2 years ago

Doing this lets people use something like the following in their vimrc:

let g:smoothie_remapped_commands = smoothie#default_commands + smoothie#experimental_commands + [ '{', '}' ]

rather than copying the list of commands in full. This change shouldn't affect anyone with existing configurations.

For parity, the other g:vars could be changed from smoothie_* to smoothie#*, but as it says in the note those aren't really intended to be public.

Also, cheers! It's a cool project

EriKWDev commented 2 years ago

Works great!

psliwka commented 5 months ago

Sorry for late reply. I like the idea, but not the implementation – including anything from autoload within plugin essentially breaks autoloading, as the entire autoload/smoothie.vim file has to be parsed at Vim startup. Could you please add these lists to plugin/smoothie.vim instead? :pray: