File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ function M.startup()
63
63
for _ , plugin in pairs (Config .plugins ) do
64
64
if plugin .init then
65
65
Util .track ({ plugin = plugin .name , init = " init" })
66
- Util .try (plugin .init , " Failed to run `init` for **" .. plugin .name .. " **" )
66
+ Util .try (function ()
67
+ plugin .init (plugin )
68
+ end , " Failed to run `init` for **" .. plugin .name .. " **" )
67
69
Util .track ()
68
70
end
69
71
end
176
178
function M .config (plugin )
177
179
local fn
178
180
if type (plugin .config ) == " function" then
179
- fn = plugin .config
181
+ fn = function ()
182
+ plugin .config (plugin )
183
+ end
180
184
else
181
185
local normname = Util .normname (plugin .name )
182
186
--- @type table<string , string>
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ M.build = {
20
20
local cmd = vim .api .nvim_parse_cmd (build :sub (2 ), {})
21
21
self .output = vim .api .nvim_cmd (cmd , { output = true })
22
22
elseif type (build ) == " function" then
23
- build ()
23
+ build (self . plugin )
24
24
else
25
25
local shell = vim .env .SHELL or vim .o .shell
26
26
local shell_args = shell :find (" cmd.exe" , 1 , true ) and " /c" or " -c"
You can’t perform that action at this time.
0 commit comments