Session being loaded in the lazy popup window #179
Unanswered
rbhanot4739
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have enabled the
autload = truein my config; however, I am observing a weird side effect with this. When I launch neovim and there are few plugins to install, the Lazy popup window is launched and plugins are installed; however, after plugin installation is done, the session gets restored in the same popup window.Here is the screen shot for the same
Here is my full plugin config
{ "olimorris/persisted.nvim", event = "BufReadPre", -- Ensure the plugin loads only when a buffer has been loaded cmd = { "SessionSelect", "SessionLoad" }, lazy = false, opts = { use_git_branch = true, autosave = true, autoload = true, should_save = function() if vim.bo.filetype == "lazy" then return false end return true end, }, config = function(_, opts) local persisted = require("persisted") persisted.branch = function() local branch = vim.fn.systemlist("git branch --show-current")[1] return vim.v.shell_error == 0 and branch or nil end persisted.setup(opts) end, }I also tried to close the lazy window with
PersistedLoadPreautocommand but it didn't work.So how can I change this behaviour.
Beta Was this translation helpful? Give feedback.
All reactions