Skip to content

Conversation

neur1n
Copy link
Contributor

@neur1n neur1n commented Feb 6, 2021

This PR adds an VimResized autocmd to redraw dashboard when the window is resized, which fixes #49 and the centering issue mentioned in #11. On neovim-qt, dashboard#instance(0) will be called multiple times on startup (4 times in my case), but after that it will be called once per VimResized.

@glepnir
Copy link
Member

glepnir commented Feb 6, 2021

LGTM Thanks for PR.

@glepnir glepnir merged commit 7cdd228 into nvimdev:master Feb 6, 2021
glepnir pushed a commit that referenced this pull request Jun 5, 2022
Co-authored-by: lijihang <lijihang@dm-ai.cn>
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.

Center dashboard when window is resized.
2 participants