mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
fix(checkhealth): fix crash due to incorrect argument type
This commit is contained in:
parent
2f779b94e7
commit
b0978fca6b
@ -1,7 +1,9 @@
|
||||
function! s:deprecate(type) abort
|
||||
let deprecate = v:lua.vim.deprecate('health#report_' . a:type, 'vim.health.' . a:type, '0.11')
|
||||
redraw | echo 'Running healthchecks...'
|
||||
call v:lua.vim.health.warn(deprecate)
|
||||
if deprecate isnot v:null
|
||||
call v:lua.vim.health.warn(deprecate)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! health#report_start(name) abort
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user