File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
local Process = require (" lazy.manage.process" )
2
2
3
3
--- @class LazyTaskDef
4
- --- @field needed ? fun ( plugin : LazyPlugin , opts : RunnerOpts ): any ?
4
+ --- @field skip ? fun ( plugin : LazyPlugin , opts : RunnerOpts ): any ?
5
5
--- @field run fun ( task : LazyTask )
6
6
7
7
--- @alias LazyTaskState fun (): boolean ?
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ local Loader = require("lazy.core.loader")
5
5
local M = {}
6
6
7
7
M .run = {
8
- needed = function (plugin )
9
- return plugin ._ .dirty and (plugin .opt == false or plugin .run )
8
+ skip = function (plugin )
9
+ return not ( plugin ._ .dirty and (plugin .opt == false or plugin .run ) )
10
10
end ,
11
11
run = function (self )
12
12
Loader .load (self .plugin , { task = " run" }, { load_start = true })
@@ -52,8 +52,8 @@ M.clean = {
52
52
}
53
53
54
54
M .docs = {
55
- needed = function (plugin )
56
- return plugin ._ .dirty
55
+ skip = function (plugin )
56
+ return not plugin ._ .dirty
57
57
end ,
58
58
run = function (self )
59
59
local docs = self .plugin .dir .. " /doc/"
You can’t perform that action at this time.
0 commit comments