Replies: 2 comments 1 reply
|
Buffers should be getting killed upon restoring the new session. Is this reproducible between two cwd changes back and forth? |
|
Just to make sure we know your config, can you share your auto-session config (or the output of Assuming https://github.com/rmagatti/auto-session/blob/main/lua/auto-session/autocmds.lua#L239-L277 The actual session is sourced here: https://github.com/rmagatti/auto-session/blob/main/lua/auto-session/init.lua#L729-L756 All of that said, auto-session is using neovim's native session handling via Once a buffer is loaded, it'll be saved as part of the session unless you close it, including buffers opened from something like lsp goto definition. Have you tried closing the buffers you don't think should be part of the session e.g. For repeated |

Uh oh!
There was an error while loading. Please reload this page.
Hi,
I often jump between projects by
cd <project-path>which does the following:<num>buffers wiped out" with confirmation requestNow, when changing projects very often, I have the impression as if, over time, the session files get larger and larger. Containing buffers from various projects in each session file.
Is it possible to some how "clean-up" the buffers and just keep the buffers currently opened within tabs / windows before saving the session files? Is there a respective parameter to be set?
Thanks.
All reactions