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 /runtime/lua/vim/lsp/health.lua | |
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 'runtime/lua/vim/lsp/health.lua')
-rw-r--r-- | runtime/lua/vim/lsp/health.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/health.lua b/runtime/lua/vim/lsp/health.lua index 987707e661..6ca468393e 100644 --- a/runtime/lua/vim/lsp/health.lua +++ b/runtime/lua/vim/lsp/health.lua @@ -2,8 +2,8 @@ local M = {} --- Performs a healthcheck for LSP function M.check() - local report_info = vim.health.report_info - local report_warn = vim.health.report_warn + local report_info = vim.health.info + local report_warn = vim.health.warn local log = require('vim.lsp.log') local current_log_level = log.get_level() @@ -29,7 +29,7 @@ function M.check() report_fn(string.format('Log size: %d KB', log_size / 1000)) local clients = vim.lsp.get_active_clients() - vim.health.report_start('vim.lsp: Active Clients') + vim.health.start('vim.lsp: Active Clients') if next(clients) then for _, client in pairs(clients) do report_info( |