mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(commands): added build command to force rebuild of a plugin
This commit is contained in:
parent
205ce42cdc
commit
23c0587791
5 changed files with 31 additions and 4 deletions
|
@ -144,6 +144,17 @@ function M.log(opts)
|
|||
}, opts)
|
||||
end
|
||||
|
||||
---@param opts? ManagerOpts
|
||||
function M.build(opts)
|
||||
opts = M.opts(opts, { mode = "build" })
|
||||
return M.run({
|
||||
pipeline = { { "plugin.build", force = true } },
|
||||
plugins = function()
|
||||
return false
|
||||
end,
|
||||
}, opts)
|
||||
end
|
||||
|
||||
---@param opts? ManagerOpts
|
||||
function M.sync(opts)
|
||||
opts = M.opts(opts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue