mirror of
https://github.com/neovim/neovim.git
synced 2026-02-03 11:01:30 +10:00
The following functions are deprecated and will be removed in Nvim v0.11: - health#report_start() - health#report_info() - health#report_ok() - health#report_warn() - health#report_error() - vim.health.report_start() - vim.health.report_info() - vim.health.report_ok() - vim.health.report_warn() - vim.health.report_error() Users should instead use these: - vim.health.start() - vim.health.info() - vim.health.ok() - vim.health.warn() - vim.health.error()
13 lines
320 B
Lua
13 lines
320 B
Lua
local M = {}
|
|
|
|
M.check = function()
|
|
vim.health.start('report 1')
|
|
vim.health.ok('life is fine')
|
|
vim.health.warn('no what installed', { 'pip what', 'make what' })
|
|
vim.health.start('report 2')
|
|
vim.health.info('stuff is stable')
|
|
vim.health.error('why no hardcopy', { ':h :hardcopy', ':h :TOhtml' })
|
|
end
|
|
|
|
return M
|