mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 01:51:52 +00:00
feat(health): improvements to :checkhealth #40935
Changes: - Removed the blank line before the first healthcheck header. - Fixed a bug where the entire "Terminal" section of `vim.health` would not appear if the `infocmp` executable was not found. - Fixed a typo in `vim.lsp` when displaying the LSP log level.
This commit is contained in:
@@ -459,7 +459,6 @@ function M._check(eap)
|
||||
for _, name in ipairs(names) do
|
||||
local value = healthchecks[name]
|
||||
progress_msg('running', check_idx, 'checking %s', name)
|
||||
check_idx = check_idx + 1
|
||||
local func = value[1]
|
||||
local type = value[2]
|
||||
s_output = {}
|
||||
@@ -508,7 +507,9 @@ function M._check(eap)
|
||||
end
|
||||
s_output[#s_output + 1] = ''
|
||||
s_output = vim.list_extend(header, s_output)
|
||||
vim.fn.append(vim.fn.line('$'), s_output)
|
||||
vim.api.nvim_buf_set_lines(0, check_idx == 1 and 0 or -1, -1, true, s_output)
|
||||
|
||||
check_idx = check_idx + 1
|
||||
end
|
||||
|
||||
progress_msg('success', nil, 'checks done')
|
||||
|
||||
Reference in New Issue
Block a user