sessions.nvim icon indicating copy to clipboard operation
sessions.nvim copied to clipboard

Deleted buffer is loaded when `require('sessions').load`

Open Jaehaks opened this issue 1 year ago • 0 comments

Thank you for your efforts.

I loaded 4 buffers and removed 1 buffers from list. The removed 1 buffer is listed also as $argadd in session_filepath file. image I guess it is related with why the removed 1 buffer is loaded when I call load() function.

I called sessions.save when Vim Leaves like this

vim.api.nvim_create_autocmd('VimLeavePre', {
	group = User_augroup,
	pattern = '*',
	callback = function ()
		sessions.save(saved_path, {autosave = false})
	end
})

Is this working normally?

Jaehaks avatar Aug 17 '24 16:08 Jaehaks