Split panes incorrectly restored when using neovide #270
-
Auto-session works great most of the time, but there's one area I have a persistent problem. When I open neovim using neovide with auto_restore_enabled = true, all my split panes are squashed into the top left of the window. This problem doesn't occur if I turn off auto-restore and manually restore with :SessionRestore, so I suspect it has something to do with the initial neovide window being somehow very small at the time that auto-restore is executed. I've tried messing around with delaying auto-restore, but I'm not well-versed in the intricacies of neovim/neovide startup (using lazy.nvim btw) so I've so far been unsuccessful. To be clear, I don't think there's anything wrong with auto-session. I'm only hoping someone here might suggest some workarounds I could try to improve this situation. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yeah this sounds like a session is being restored before some kind of window events. I suppose what you could try would be to turn off auto restore enabled and set up a delayed auto command to restore the session? Not sure how that would look like to be honest but may be worth a try. I use neovide too but I only ever open it from the terminal already on the right project |
Beta Was this translation helpful? Give feedback.
Found it!
Looks like it's doing automatically what I've been doing manually for a while now - typing
⌃w=
when neovide starts. Found an explanation here: https://www.reddit.com/r/neovim/comments/mv7cnz/comment/gvai9fp/