blob: 11d714821638a11eeaacfe558a5b6f4ecf077902 (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | 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
 |