mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-10-09 03:32:15 +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",
|
url = "zk-org/zk-nvim",
|
||||||
version = "0.2.0-1"
|
version = "0.2.0-1"
|
||||||
} }
|
} }
|
||||||
|
{}
|
||||||
|
|
|
@ -62,7 +62,9 @@ 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
|
||||||
require("lazy").update():wait()
|
if not vim.env.LAZY_OFFLINE then
|
||||||
|
require("lazy").update():wait()
|
||||||
|
end
|
||||||
if vim.bo.filetype == "lazy" then
|
if vim.bo.filetype == "lazy" then
|
||||||
local errors = false
|
local errors = false
|
||||||
for _, plugin in pairs(require("lazy.core.config").spec.plugins) do
|
for _, plugin in pairs(require("lazy.core.config").spec.plugins) do
|
||||||
|
@ -150,7 +152,7 @@ function M.minitest.setup(opts)
|
||||||
opts = {
|
opts = {
|
||||||
collect = {
|
collect = {
|
||||||
find_files = function()
|
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,
|
end,
|
||||||
},
|
},
|
||||||
-- script_path = "tests/minit.lua",
|
-- script_path = "tests/minit.lua",
|
||||||
|
|
|
@ -63,6 +63,9 @@ function M.update()
|
||||||
pkg.spec = { _raw = spec.code }
|
pkg.spec = { _raw = spec.code }
|
||||||
end
|
end
|
||||||
table.insert(ret.pkgs, pkg)
|
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
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue