aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/man/health.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-10-30 06:41:28 +0100
committerJustin M. Keyes <justinkz@gmail.com>2022-10-30 16:23:58 +0100
commitcc7c378bf319d62491ca121ab598397428e4ced4 (patch)
treed42b3cc266d34ff80736060dd52ad3a30a1a8ccd /runtime/lua/man/health.lua
parent3213bc36c5d0cddf8f81498a1ac590bc6d81d743 (diff)
downloadrneovim-cc7c378bf319d62491ca121ab598397428e4ced4.tar.gz
rneovim-cc7c378bf319d62491ca121ab598397428e4ced4.tar.bz2
rneovim-cc7c378bf319d62491ca121ab598397428e4ced4.zip
feat(checkhealth): check runtime ($VIMRUNTIME)
Move man/health.lua into the "runtime" check. fix #20696
Diffstat (limited to 'runtime/lua/man/health.lua')
-rw-r--r--runtime/lua/man/health.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/runtime/lua/man/health.lua b/runtime/lua/man/health.lua
deleted file mode 100644
index 11d7148216..0000000000
--- a/runtime/lua/man/health.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local M = {}
-
-local report_ok = vim.fn['health#report_ok']
-local report_error = vim.fn['health#report_error']
-
-local function check_runtime_file(name)
- local path = vim.env.VIMRUNTIME .. '/' .. name
- if vim.loop.fs_stat(path) then
- report_error(string.format('%s detected. Please delete %s', name, path))
- else
- report_ok(string.format('%s not in $VIMRUNTIME', name))
- end
-end
-
-function M.check()
- check_runtime_file('plugin/man.vim')
- check_runtime_file('autoload/man.vim')
-end
-
-return M