You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just started using resession as a replacement for another session plugin I used previously. One thing I noticed is that plugins such as gitsigns and dropbar do not load on startup when using resession. Once I use :e, for example, they load. Below, I attach a video showcasing the bug and my config.
Screen.Recording.2024-09-04.at.15.01.58.mov
What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
As seen in the video.
Expected Behavior
This plugin should not interfere with the loading of other plugins.
Directory structure
No response
Repro
localM= {
"stevearc/resession.nvim",
lazy=false,
cond=notvim.g.started_by_firenvimandnotvim.g.vscode,
}
functionM.config()
localresession=require("resession")
resession.setup({
-- Options for automatically saving sessions on a timerautosave= {
enabled=false,
-- How often to save (in seconds)interval=60,
-- Notify when autosavednotify=true,
},
-- Save and restore these optionsoptions= {
"binary",
"bufhidden",
"buflisted",
"cmdheight",
"diff",
"filetype",
"modifiable",
"previewwindow",
"readonly",
"scrollbind",
"winfixheight",
"winfixwidth",
},
-- Custom logic for determining if the buffer should be includedbuf_filter=require("resession").default_buf_filter,
-- Show more detail about the sessions when selecting one to load.-- Disable if it causes lag.load_detail=true,
-- List order ["modification_time", "creation_time", "filename"]load_order="modification_time",
-- Configuration for extensionsextensions= {
quickfix= {},
hbac= {},
oil= {},
},
})
localfunctionget_session_name()
localname=vim.fn.getcwd()
localbranch=vim.trim(vim.fn.system("git branch --show-current"))
ifvim.v.shell_error==0thenreturnname..branchelsereturnnameendendvim.api.nvim_create_autocmd("VimEnter", {
callback=function()
-- Only load the session if nvim was started with no argsifvim.fn.argc(-1) ==0thenresession.load(get_session_name(), { dir="dirsession", silence_errors=true })
endend,
})
vim.api.nvim_create_autocmd("VimLeavePre", {
callback=function()
resession.save(get_session_name(), { dir="dirsession", notify=true })
end,
})
endreturnM
Did you check the bug with a clean config?
I have confirmed that the bug reproduces with nvim -u repro.lua using the repro.lua file above.
Did you check the docs and existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
MacOS 14.4.1
Describe the bug
I just started using
resessionas a replacement for another session plugin I used previously. One thing I noticed is that plugins such asgitsignsanddropbardo not load on startup when usingresession. Once I use:e, for example, they load. Below, I attach a video showcasing the bug and my config.Screen.Recording.2024-09-04.at.15.01.58.mov
What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
As seen in the video.
Expected Behavior
This plugin should not interfere with the loading of other plugins.
Directory structure
No response
Repro
Did you check the bug with a clean config?
nvim -u repro.luausing the repro.lua file above.