folke / persistence.nvim

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

Can't see sessions in vim-startify #5

Closed p00f closed 3 years ago

p00f commented 3 years ago

Not sure how this is supposed to work, I haven't used vim sessions before :sweat_smile: . Entering

lua require("persistence").load({ last = true })

in the command line restores the last session.

g:startify_lists is

[{'header': ['   Sessions'], 'type': 'sessions'}, {'header': ['   Bookmarks'], 'type': 'bookmarks'}, {'header': ['   git modified'], 'type': function('<lamb
da>1')}, {'header': ['   git untracked'], 'type': function('<lambda>2')}, {'header': ['   MRU'], 'type': 'f
iles'}, {'header': ['   MRU /home/p00f'], 'type': 'dir'}]

All the other sections (git modified, git untracked, MRU) work.

I don't lazy-load persistence

p00f commented 3 years ago

Ah I had to change g:startify_session_dir, it uses ~/.config/nvim/session by default (as opposed to sessions)