fix(checkhealth): fix crash due to incorrect argument type

This commit is contained in:
dundargoc
2023-04-16 12:26:13 +02:00
committed by GitHub
parent 2f779b94e7
commit b0978fca6b
2 changed files with 4 additions and 2 deletions

View File

@@ -266,7 +266,7 @@ function M._check(plugin_names)
M.error('No healthcheck found for "' .. name .. '" plugin.')
end
if type == 'v' then
vim.cmd.call(func, {})
vim.fn.call(func, {})
else
local f = assert(loadstring(func))
local ok, output = pcall(f)