mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
fix(checkhealth): fix crash due to incorrect argument type
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
function! s:deprecate(type) abort
|
function! s:deprecate(type) abort
|
||||||
let deprecate = v:lua.vim.deprecate('health#report_' . a:type, 'vim.health.' . a:type, '0.11')
|
let deprecate = v:lua.vim.deprecate('health#report_' . a:type, 'vim.health.' . a:type, '0.11')
|
||||||
redraw | echo 'Running healthchecks...'
|
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
|
endfunction
|
||||||
|
|
||||||
function! health#report_start(name) abort
|
function! health#report_start(name) abort
|
||||||
|
@@ -266,7 +266,7 @@ function M._check(plugin_names)
|
|||||||
M.error('No healthcheck found for "' .. name .. '" plugin.')
|
M.error('No healthcheck found for "' .. name .. '" plugin.')
|
||||||
end
|
end
|
||||||
if type == 'v' then
|
if type == 'v' then
|
||||||
vim.cmd.call(func, {})
|
vim.fn.call(func, {})
|
||||||
else
|
else
|
||||||
local f = assert(loadstring(func))
|
local f = assert(loadstring(func))
|
||||||
local ok, output = pcall(f)
|
local ok, output = pcall(f)
|
||||||
|
Reference in New Issue
Block a user