bug: lazy.sync { plugins = ... }
: attempt to index field '_' (a nil value)
#145
Labels
bug
Something isn't working
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.0-dev+519-g2d8bbe468
Operating system/version
Fedora 36
Describe the bug
In readme it says that
require("lazy").sync(opts?) and
require("lazy").install(opts?) and
require("lazy").update(opts?) and
require("lazy").clean(opts?)
take opts as an argument and that opts can have a
plugins
key,which is "a list of plugin names to run the operation on",
but if I pass
{ plugins = {"lazy.nvim"} }
to any of these functions,it results in the error below or
attempt to index field '_' (a nil value)
if I add vim.schedule tolazy/core/util.lua/notify()
Steps To Reproduce
nvim -u repro.lua
Expected Behavior
require("lazy").sync { plugins = {"lazy.nvim"} }
: update plugin if neededrequire("lazy").clean { plugins = {"lazy.nvim"} }
: do nothing, since plugin is userequire("lazy").install { plugins = {"lazy.nvim"} }
: do nothing, since plugin is installedrequire("lazy").update { plugins = {"lazy.nvim"} }
: update if neededRepro
The text was updated successfully, but these errors were encountered: