mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.3k stars 186 forks source link

Optionally allow Startify variables to be updated #525

Open katawful opened 2 years ago

katawful commented 2 years ago

Currently, a lot of internal variables are set once due to how Vimscript sourcing works. One of these is the variable for padding, which means dynamic centering isn't possible at all. This PR addresses that by wrapping all script level variables into a function and calling that within the script file so normal functionality is expected. Then, if a user wishes to adjust padding on the fly, they can pass a truthy to startify#insane_in_the_membrane as the second argument. This will call the wrapped variable definitions, updating them with new values

Closes #524