mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(runner): sync package specs after installing and before building
This commit is contained in:
parent
656d3d1f5b
commit
105d4805ad
4 changed files with 58 additions and 24 deletions
|
@ -83,7 +83,13 @@ function M.install(opts)
|
|||
"git.clone",
|
||||
{ "git.checkout", lockfile = opts.lockfile },
|
||||
"plugin.docs",
|
||||
"wait",
|
||||
{
|
||||
"wait",
|
||||
sync = function()
|
||||
require("lazy.pkg").update()
|
||||
Plugin.load()
|
||||
end,
|
||||
},
|
||||
"plugin.build",
|
||||
},
|
||||
plugins = function(plugin)
|
||||
|
@ -92,7 +98,6 @@ function M.install(opts)
|
|||
}, opts):wait(function()
|
||||
require("lazy.manage.lock").update()
|
||||
require("lazy.help").update()
|
||||
require("lazy.pkg").update()
|
||||
end)
|
||||
end
|
||||
|
||||
|
@ -107,7 +112,13 @@ function M.update(opts)
|
|||
"git.status",
|
||||
{ "git.checkout", lockfile = opts.lockfile },
|
||||
"plugin.docs",
|
||||
"wait",
|
||||
{
|
||||
"wait",
|
||||
sync = function()
|
||||
require("lazy.pkg").update()
|
||||
Plugin.load()
|
||||
end,
|
||||
},
|
||||
"plugin.build",
|
||||
{ "git.log", updated = true },
|
||||
},
|
||||
|
@ -117,7 +128,6 @@ function M.update(opts)
|
|||
}, opts):wait(function()
|
||||
require("lazy.manage.lock").update()
|
||||
require("lazy.help").update()
|
||||
require("lazy.pkg").update()
|
||||
end)
|
||||
end
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue