From b0978fca6b82a061b345df43745c3ab860e02b58 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Sun, 16 Apr 2023 12:26:13 +0200 Subject: fix(checkhealth): fix crash due to incorrect argument type --- runtime/lua/vim/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua') diff --git a/runtime/lua/vim/health.lua b/runtime/lua/vim/health.lua index 04f8f9695b..ff338b95ea 100644 --- a/runtime/lua/vim/health.lua +++ b/runtime/lua/vim/health.lua @@ -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) -- cgit