Exclude certain buffers from being restored? #70
-
When I have Neotree and the Neotest summary window opened upon exit, I get unwanted buffers restored when restoring the session with Is there a way I can exclude those two buffers? It seems like I can get rid of them by setting this, but is it the right way? vim.opt.sessionoptions = "curdir,folds,help,tabpages,winsize,terminal" I use persistance with the default settings: https://github.com/fredrikaverpil/dotfiles/blob/21b63c6db4b0e3f3ba63d8cd1d85105199b0bb47/nvim-fredrik/lua/plugins/persistance.lua |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
you can check what I do in LAzyVim |
Beta Was this translation helpful? Give feedback.
Found your persistance config through this low-effort search: https://github.com/search?q=repo%3ALazyVim%2FLazyVim%20sessionoptions&type=code
I'm a bit confused when I've now seen your config.
sessionoptions
should be a string, not a table. EDIT: I see now that it seems Neovim is fine with this being a table too 🪄get()
onvim.opt.sessionoptions
there ... but why are you doing that... is that really valid? It doesn't seem like LSP/lazydev can handle it as I get an "undefined field 'get'" error there.options
in the persistance opts. I can't see anything in the persistance lua code that uses that.Anyay, omit…