Merge branch 'main' into bugfix/nvim-neorocks-to-lumen-oss

This commit is contained in:
Folke Lemaitre 2025-10-03 15:24:56 +02:00 committed by GitHub
commit 0d0314d3de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View file

@ -2408,3 +2408,4 @@ return
url = "zk-org/zk-nvim",
version = "0.2.0-1"
} }
{}

View file

@ -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",

View file

@ -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