aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/health.lua
diff options
context:
space:
mode:
authorMatthieu Coudron <teto@users.noreply.github.com>2021-10-05 11:27:07 +0200
committerGitHub <noreply@github.com>2021-10-05 11:27:07 +0200
commit93a7571faba529f7b3e527336e933731eb91bbec (patch)
tree804a61b2ff65eaef7c06a7390768ece5e890142f /runtime/lua/health.lua
parent655e489e90712cc3c2f06d84a5030c66e5c51d91 (diff)
parent8b43b07333bc8ae9ca347daffb09f2bdf50af3ed (diff)
downloadrneovim-93a7571faba529f7b3e527336e933731eb91bbec.tar.gz
rneovim-93a7571faba529f7b3e527336e933731eb91bbec.tar.bz2
rneovim-93a7571faba529f7b3e527336e933731eb91bbec.zip
Merge pull request #15259 from muniter/muniter/checkhealth-from-lua
feat(checkhealth): support Lua healthchecks
Diffstat (limited to 'runtime/lua/health.lua')
-rw-r--r--runtime/lua/health.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/lua/health.lua b/runtime/lua/health.lua
new file mode 100644
index 0000000000..142a353bf2
--- /dev/null
+++ b/runtime/lua/health.lua
@@ -0,0 +1,23 @@
+local M = {}
+
+function M.report_start(msg)
+ vim.fn['health#report_start'](msg)
+end
+
+function M.report_info(msg)
+ vim.fn['health#report_info'](msg)
+end
+
+function M.report_ok(msg)
+ vim.fn['health#report_ok'](msg)
+end
+
+function M.report_warn(msg, ...)
+ vim.fn['health#report_warn'](msg, ...)
+end
+
+function M.report_error(msg, ...)
+ vim.fn['health#report_error'](msg, ...)
+end
+
+return M