test: --offline for minit
Some checks are pending
CI / ci (push) Waiting to run
Community / community (push) Has been skipped
Docs / docs (push) Has been skipped

This commit is contained in:
Folke Lemaitre 2025-10-08 21:26:55 +02:00
commit 4ded3ff73b
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -33,11 +33,14 @@ function M.setup(opts)
local args = {} local args = {}
local is_busted = false local is_busted = false
local is_minitest = false local is_minitest = false
local offline = vim.env.LAZY_OFFLINE == "1" or vim.env.LAZY_OFFLINE == "true"
for _, a in ipairs(_G.arg) do for _, a in ipairs(_G.arg) do
if a == "--busted" then if a == "--busted" then
is_busted = true is_busted = true
elseif a == "--minitest" then elseif a == "--minitest" then
is_minitest = true is_minitest = true
elseif a == "--offline" then
offline = true
else else
table.insert(args, a) table.insert(args, a)
end end
@ -62,7 +65,7 @@ function M.setup(opts)
if vim.g.colors_name == nil then if vim.g.colors_name == nil then
vim.cmd("colorscheme habamax") vim.cmd("colorscheme habamax")
end end
if not vim.env.LAZY_OFFLINE then if not offline then
require("lazy").update():wait() require("lazy").update():wait()
end end
if vim.bo.filetype == "lazy" then if vim.bo.filetype == "lazy" then