folke / persistence.nvim

💾 Simple session management for Neovim
Apache License 2.0
591 stars 26 forks source link

bug: Can't load session IF I exited with oil.nvim buffer as active #56

Closed elderkeltir closed 1 month ago

elderkeltir commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.10.1-dev-15+gbdd5871dc

Operating system/version

OpenSuSe Tumbleweed

Describe the bug

I can't restore session in the directory if I closed nvim while oil.nvim buffer was active

Steps To Reproduce

  1. open nvim in some project directory
  2. open file inside your project
  3. close nvim
  4. open nvim at the same directory and load session. Check that it works.
  5. Now open some file from this very directory.
  6. open Oil (another nvim plugin, kind of filemanager in buffer)
  7. exit nvim while oil buffer is active
  8. open nvim in this same directory. try to restore session
  9. observe that nothing happened.

Expected Behavior

I'd like to be able to restore my session no matter what buffer was active before exit

folke commented 1 month ago

Persistence is just a wrapper around mksession. Nothing I can do about your issue