rmagatti / auto-session

A small automated session manager for Neovim
MIT License
1.11k stars 44 forks source link

Folds are only saved for visible buffers #294

Open haraldan opened 1 month ago

haraldan commented 1 month ago

Issue When restoring a saved session, folds for all the buffers that are not in one of the current windows are lost.

To Reproduce

  1. Open more then one buffer in a Neovim session
  2. Toggle a fold closed
  3. Switch to another buffer
  4. Close and open Neovim
  5. Switch back to the first buffer
  6. All folds are open again

Expected behavior Folds are restored in all buffers.

Baseline:

rmagatti commented 1 month ago

Does this happen if you save and restore a session manually with mksess and source? Pretty sure this is just how Neovim's sessions work and auto-session doesn't actually have control over whether folds are saved on closed buffers