mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46: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
|
@ -5,7 +5,11 @@ local Loader = require("lazy.core.loader")
|
|||
local M = {}
|
||||
|
||||
M.build = {
|
||||
skip = function(plugin)
|
||||
---@param opts? {force:boolean}
|
||||
skip = function(plugin, opts)
|
||||
if opts and opts.force then
|
||||
return false
|
||||
end
|
||||
return not (plugin._.dirty and plugin.build)
|
||||
end,
|
||||
run = function(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue