mhinz / mhinz/vim-startify

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

Open
#524 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
5.4k
Forks
181
PR merge metrics
No merged PRs in 30d

Description

I am trying to hack in support for a centered Startify window, and while I can achieve centering, once Vim starts I am stuck with the value initially set to `g:startify_padding_left` regardless of when I set the padding variable. So when I open a vsplit with a Startify window, despite `g:startify_padding_left` being set to the padding I desire, Startify itself will keep the padding value used when Vim was opened

Open fresh neovim, centered how i want. `g:startify_padding_left` = 66
![2022-04-19~11:56:48](https://user-images.githubusercontent.com/45222045/164045662-75512c23-ec6c-40ef-b247-22cf6a28b6de.png)

Open a new Startify window during the same session, the padding doesn't update. `g:startify_padding_left` = 13
![2022-04-19~11:57:09](https://user-images.githubusercontent.com/45222045/164045658-a7e0c916-49ff-466e-b1ac-ee293da7f9d8.png)

I would really like to be able to do this. I could write a PR if needed, I have Vimscript experience

Contributor guide

Open the contributing guide

Research direction

Locate where the Startify window is created and where g:startify_padding_left is read. Reproduce the issue by changing the value after opening Vim, then opening a new Startify window; done means the new window uses the current padding value rather than the value from startup.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.