Persistence.nvim isn't cooperating with neovide #79
Replies: 1 comment
-
|
I'm not a professional session vimmer. Recently, i was having problem with the I also use Neovide but on Windows. I've reproduced your described actions but it works fine here. Remeber that vim have a differentiation between root_dir and cwd. Root dir is always the parent folder that vim is invoked. The cwd is the argument.
Above you can see that it stores the directories. So, i know that it can slow the vim loading But i prefer always using As you can see, the size of the file is negligible and i'm already fuzzy finding. Look at I just want the behavior that "if i've already visted the folder, it's being cached in the plugin to quickly jump to it" I hope it can give some insight to your problem. But it seems not a problem with the |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I've been experimenting with Neovide (as one does periodically before inevitably reverting to the terminal) and it's becoming a compelling experience. I noticed that sessions are not getting saved correctly. This is at least partially due to the way Neovide sets itself up on Macos, so I'm not filing this as an issue on persistence.nvim, but I am seeking professional advice.
Context:
brew install neovideIf I run
neovidefrom my terminal, neovide is opened with the CWD set to the folder that my terminal was in when I ran the command. If I run<leader>qqit closes and saves the session as expected, and<leader>qsrestores the last session.However, if I run
Neovide.appfrom Macos Spotlight, it opens a neovide instance with the cwd set to/. I can use:cdto change the cwd, and<leader>qSallows me to select an old session that sets a different cwd. I can close the window with<leader>qq, but when I reopen it,<leader>qsdoesn't do anything (at all; no error messages that I can find). If I use<leader>qSI can select the old session and it reflects whatever files were open when I called<leader>qq, so it is updating the session, just not loading it as the "last" session.My best guess is one of these is happening:
<leader>qSalso shouldn't work in this case, though.As a workaround, I added
Sto my LazyVim dashboard to allow me to select session on startup:I have no idea why the browser renders the icon like that; it's a refresh icon with a dot in the centre in neovim:
Beta Was this translation helpful? Give feedback.
All reactions