mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-10-08 19:22:14 +00:00
Merge branch 'main' into bugfix/nvim-neorocks-to-lumen-oss
This commit is contained in:
commit
0d0314d3de
3 changed files with 8 additions and 2 deletions
|
@ -2408,3 +2408,4 @@ return
|
|||
url = "zk-org/zk-nvim",
|
||||
version = "0.2.0-1"
|
||||
} }
|
||||
{}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue