bug: how to exclude the current directory (as empty buffer) on session restore
xuanhung1509 opened this issue · comments
Did you check docs and existing issues?
- I have read all the persistence.nvim docs
- I have searched the existing issues of persistence.nvim
- I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.9.0
Operating system/version
Linux Mint 21.1 Vera
Describe the bug
Suppose I have a single buffer
However, on restore, it also creates an empty buffer for the directory, which is not what I expect (the buffer to the left of App.tsx
)
I've tried to exclude "curdir"
from options
but it doesn't work either. Actually, even if I set options
to nil
, it still functions as default.
Steps To Reproduce
- Open and edit a file
- Save the file and quit
- Open and restore session
Expected Behavior
It should not create an empty buffer for current directory on restoring
Repro
No response
Must be something in your config. Never heard anyone having such an issue before
@xuanhung1509 did you ever track this down? I'll try to take a look otherwise since this happens to me, too.
As far as I can tell, this has sth to do with the distro. The above issue exists in NvChad, but if I install onto LunarVim, it seems to work fine.
It's present in Astronvim as well, so that's useful info. Thanks!