diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-04-15 23:40:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-15 23:40:48 +0200 |
| commit | c08b03076167837cff9eb66c19440d727e6dad31 (patch) | |
| tree | bd99b63144c76361c5cec45715397d15bfdc935f /test/functional/fixtures/lua/test_plug/full_render | |
| parent | c8667c8756a211b8597e2e0a80200498b752915d (diff) | |
| download | rneovim-c08b03076167837cff9eb66c19440d727e6dad31.tar.gz rneovim-c08b03076167837cff9eb66c19440d727e6dad31.tar.bz2 rneovim-c08b03076167837cff9eb66c19440d727e6dad31.zip | |
refactor: deprecate checkhealth functions
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()
Diffstat (limited to 'test/functional/fixtures/lua/test_plug/full_render')
| -rw-r--r-- | test/functional/fixtures/lua/test_plug/full_render/health.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/fixtures/lua/test_plug/full_render/health.lua b/test/functional/fixtures/lua/test_plug/full_render/health.lua new file mode 100644 index 0000000000..10833f6239 --- /dev/null +++ b/test/functional/fixtures/lua/test_plug/full_render/health.lua @@ -0,0 +1,12 @@ +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 |