From e6652821bd32e4ff8d62a0b67fc2041a5f41e252 Mon Sep 17 00:00:00 2001 From: Javier Lopez Date: Tue, 31 May 2022 13:10:18 -0500 Subject: refactor(checkhealth)!: rename to vim.health, move logic to Lua #18720 - Complete function: There was lots of unnecessary C code for the complete function, therefore moving it to Lua and use all the plumbing we have in place to retrieve the results. - Moving the module: It's important we keep nvim lua modules name spaced, avoids conflict with plugins, luarocks, etc. --- test/functional/fixtures/lua/test_plug/submodule/health.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/functional/fixtures/lua/test_plug/submodule') diff --git a/test/functional/fixtures/lua/test_plug/submodule/health.lua b/test/functional/fixtures/lua/test_plug/submodule/health.lua index d07632cff4..58162d4515 100644 --- a/test/functional/fixtures/lua/test_plug/submodule/health.lua +++ b/test/functional/fixtures/lua/test_plug/submodule/health.lua @@ -1,11 +1,10 @@ local M = {} -local health = require("health") M.check = function() - health.report_start("report 1") - health.report_ok("everything is fine") - health.report_start("report 2") - health.report_ok("nothing to see here") + vim.health.report_start("report 1") + vim.health.report_ok("everything is fine") + vim.health.report_start("report 2") + vim.health.report_ok("nothing to see here") end return M -- cgit