Unable disable `delete_hidden_buffers` setting
Closed this issue · 2 comments
0-th commented
I have looked into #18, and set delete_hidden_buffers
to false
and delete_buffers
to true
. But the behaviour still persists regardless.
My config:
local possess_status_ok, possession = pcall(require, "possession")
if not possess_status_ok then
vim.notify("Unable to require possession")
return
end
possession.setup {
autosave = {
current = true
},
commands = {
save = 'SSave',
load = 'SLoad',
delete = 'SDelete',
list = 'SList',
close = 'SClose',
show = 'SShow',
migrate = 'SMigrate',
},
delete_hidden_buffers = false, -- Remove the deletion of hidden buffers without windows
delete_buffers = true, -- Delete all buffers before loading another session
}
-- Telescope integrations
local tele_status_ok, telescope = pcall(require, "telescope")
if not tele_status_ok then
vim.notify("Unable to require telescope for possession plugin")
return
end
telescope.load_extension('possession')
jedrzejboczar commented
Your configuration is missing the plugins
key, you should use:
possession.setup {
autosave = {
current = true
},
commands = {
save = 'SSave',
load = 'SLoad',
delete = 'SDelete',
list = 'SList',
close = 'SClose',
show = 'SShow',
migrate = 'SMigrate',
},
plugins = {
delete_hidden_buffers = false, -- Remove the deletion of hidden buffers without windows
delete_buffers = true, -- Delete all buffers before loading another session
},
}
I might have forgotten to add this when commenting on #18. Please check https://github.com/jedrzejboczar/possession.nvim#configuration and possession.txt for reference.
0-th commented
Sorry, for the oversight. Including the plugins fixes the issue. Thanks for developing this awesome plugin