File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,11 @@ function M.install(opts)
85
85
" plugin.docs" ,
86
86
{
87
87
" wait" ,
88
- sync = function ()
88
+ --- @param runner Runner
89
+ sync = function (runner )
89
90
require (" lazy.pkg" ).update ()
90
91
Plugin .load ()
92
+ runner :update ()
91
93
end ,
92
94
},
93
95
" plugin.build" ,
@@ -114,9 +116,11 @@ function M.update(opts)
114
116
" plugin.docs" ,
115
117
{
116
118
" wait" ,
117
- sync = function ()
119
+ --- @param runner Runner
120
+ sync = function (runner )
118
121
require (" lazy.pkg" ).update ()
119
122
Plugin .load ()
123
+ runner :update ()
120
124
end ,
121
125
},
122
126
" plugin.build" ,
Original file line number Diff line number Diff line change @@ -49,7 +49,14 @@ function Runner.new(opts)
49
49
end
50
50
51
51
function Runner :plugin (name )
52
- return Config .plugins [name ] or self ._plugins [name ]
52
+ return self ._plugins [name ]
53
+ end
54
+
55
+ --- Update plugins
56
+ function Runner :update ()
57
+ for name in pairs (self ._plugins ) do
58
+ self ._plugins [name ] = Config .plugins [name ] or self ._plugins [name ]
59
+ end
53
60
end
54
61
55
62
function Runner :start ()
You can’t perform that action at this time.
0 commit comments