Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally allow Startify variables to be updated #525

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

katawful
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Startify window does not update to reflect new g:startify_padding_left value
1 participant