feat(checkhealth): check runtime ($VIMRUNTIME)

Move man/health.lua into the "runtime" check.

fix #20696
This commit is contained in:
Justin M. Keyes
2022-10-30 06:41:28 +01:00
parent 3213bc36c5
commit cc7c378bf3
4 changed files with 113 additions and 64 deletions

View File

@@ -20,7 +20,9 @@ function M.check()
local is_loadable, ret = pcall(ts.language.require_language, parsername)
if not is_loadable or not ret then
health.report_error(string.format('Parser "%s" failed to load (path: %s): %s', parsername, parser, ret or '?'))
health.report_error(
string.format('Parser "%s" failed to load (path: %s): %s', parsername, parser, ret or '?')
)
elseif ret then
local lang = ts.language.inspect_language(parsername)
health.report_ok(