neovim/runtime/lua/health.lua
Javier Lopez e6652821bd
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.
2022-05-31 11:10:18 -07:00

7 lines
155 B
Lua

return setmetatable({}, {
__index = function(_, k)
vim.deprecate("require('health')", 'vim.health', '0.9', false)
return vim.health[k]
end,
})