diff --git a/lua/lazy/community/_generated.lua b/lua/lazy/community/_generated.lua index 0b02f4e..e1d3f78 100644 --- a/lua/lazy/community/_generated.lua +++ b/lua/lazy/community/_generated.lua @@ -2408,3 +2408,4 @@ return url = "zk-org/zk-nvim", version = "0.2.0-1" } } +{} diff --git a/lua/lazy/minit.lua b/lua/lazy/minit.lua index 0b8f3ca..b511a92 100644 --- a/lua/lazy/minit.lua +++ b/lua/lazy/minit.lua @@ -62,7 +62,9 @@ function M.setup(opts) if vim.g.colors_name == nil then vim.cmd("colorscheme habamax") end - require("lazy").update():wait() + if not vim.env.LAZY_OFFLINE then + require("lazy").update():wait() + end if vim.bo.filetype == "lazy" then local errors = false for _, plugin in pairs(require("lazy.core.config").spec.plugins) do @@ -150,7 +152,7 @@ function M.minitest.setup(opts) opts = { collect = { find_files = function() - return vim.fn.globpath("tests", "**/*_spec.lua", true, true) + return #_G.arg > 0 and _G.arg or vim.fn.globpath("tests", "**/*_spec.lua", true, true) end, }, -- script_path = "tests/minit.lua", diff --git a/lua/lazy/pkg/init.lua b/lua/lazy/pkg/init.lua index 7b52da1..90cfbfc 100644 --- a/lua/lazy/pkg/init.lua +++ b/lua/lazy/pkg/init.lua @@ -63,6 +63,9 @@ function M.update() pkg.spec = { _raw = spec.code } end table.insert(ret.pkgs, pkg) + if not plugin._.pkg and plugin._.loaded and pkg.source == "rockspec" then + require("lazy.core.loader").add_to_luapath(plugin) + end break end end