diff --git a/lua/packer/plugin_utils.lua b/lua/packer/plugin_utils.lua index 00bee032..59edf78d 100644 --- a/lua/packer/plugin_utils.lua +++ b/lua/packer/plugin_utils.lua @@ -121,7 +121,7 @@ plugin_utils.post_update_hook = function(plugin, disp) if plugin.run then disp:task_update(plugin_name, 'running post update hook...') if type(plugin.run) == 'function' then - if pcall(plugin.run(plugin)) then + if pcall(plugin.run, plugin) then return result.ok(true) else return result.err({msg = 'Error running post update hook'})