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 exsiting issues of plugins related to this issue
Neovim version (nvim -v)
0.8.1
Operating system/version
Windows 11
Describe the bug
Problem
Running:
:Lazy sync<plugin-name>
immediately deletes the plugin's directory contents,
resulting in many unrecoverable errors because lazy tries to read the non-existing contents afterwards.
Proposed solutions
Read the contents before deleting
Steps To Reproduce
Open Neovim
Run :Lazy sync lazy.nvim for example
Expected Behavior
Normal plugin syncing.
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",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else herevim.api.nvim_create_autocmd("User", {
pattern="VeryLazy",
command="Lazy sync lazy.nvim",
})
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
0.8.1
Operating system/version
Windows 11
Describe the bug
Problem
Running:
immediately deletes the plugin's directory contents,
resulting in many unrecoverable errors because
lazy
tries to read the non-existing contents afterwards.Proposed solutions
Steps To Reproduce
:Lazy sync lazy.nvim
for exampleExpected Behavior
Normal plugin syncing.
Repro
The text was updated successfully, but these errors were encountered: