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 have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.10.0-dev-2702+g0c0be09ea-dirty
Operating system/version
Arch Linux
Describe the bug
On startup, Lazy opens when plugins are missing.
I have a plugin spec (for dashboard-nvim) which closes the window if it's open.
It doesn't clear the backdrop when closing.
Steps To Reproduce
nvim -nu repro.lua
Clean nvim-treesitter (any plugin) (the repro does this for you)
Open nvim
Wait for it to install
Notice darkened editor
Expected Behavior
Remove the backdrop on close
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{ "nvim-treesitter/nvim-treesitter" }, -- Any plugin works, just need something to cause lazy to open
{
"echasnovski/mini.animate", -- any plugin, just using for `event =`event="VimEnter", -- This doesn't work as a normal autocmd. I don't know why.opts=function()
ifvim.o.filetype=="lazy" thenvim.cmd.close()
endend,
},
}
require("lazy").setup(plugins, { install= { colorscheme= { "tokyonight-night" } } }) -- It's more obvious with tokyonightrequire("lazy").clean({ plugins= { "nvim-treesitter" }, show=false }) -- Make repro easier by making this idempotent
The text was updated successfully, but these errors were encountered:
aarondill
changed the title
bug: lazy window backdrop doesn't disappear on install = {missing=true}
bug: lazy window backdrop doesn't disappear when closing in plugin setup
Mar 27, 2024
It seems that Neovim does not execute WinClosed autocmds before VimEnter.
Added an extra check on VimEnter to see if the window was already closed for cleanup.
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0-dev-2702+g0c0be09ea-dirty
Operating system/version
Arch Linux
Describe the bug
On startup, Lazy opens when plugins are missing.
I have a plugin spec (for
dashboard-nvim
) which closes the window if it's open.It doesn't clear the backdrop when closing.
Steps To Reproduce
nvim -nu repro.lua
nvim-treesitter
(any plugin) (the repro does this for you)Expected Behavior
Remove the backdrop on close
Repro
The text was updated successfully, but these errors were encountered: