test: LAZY_OFFLINE support for minit

This commit is contained in:
Folke Lemaitre 2025-10-02 18:41:39 +02:00
parent a1380a8461
commit a21b7bf2e7
No known key found for this signature in database
GPG Key ID: 9B52594D560070AB
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ function M.setup(opts)
if vim.g.colors_name == nil then
vim.cmd("colorscheme habamax")
end
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