Skip to content

Exclude certain buffers from being restored? #70

Discussion options

You must be logged in to vote

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.

  1. According to the nvim 0.10 docs, the type of sessionoptions should be a string, not a table. EDIT: I see now that it seems Neovim is fine with this being a table too 🪄
  2. You are calling get() on vim.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.
  3. You are specifying options in the persistance opts. I can't see anything in the persistance lua code that uses that.

Anyay, omit…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fredrikaverpil
Comment options

Answer selected by fredrikaverpil
@folke
Comment options

@fredrikaverpil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants