feat(health): show :checkhealth in floating window #31086

Problem: health can not shown in a floating window
Solution: add g:health variable
This commit is contained in:
glepnir
2025-01-08 00:09:01 +08:00
committed by GitHub
parent d9ee0d2984
commit b12b91c274
6 changed files with 66 additions and 10 deletions

View File

@@ -66,6 +66,18 @@ describe(':checkhealth', function()
eq({}, getcompletion('', 'checkhealth'))
assert_alive()
end)
it('vim.g.health', function()
clear()
command("let g:health = {'style':'float'}")
command('checkhealth lsp')
eq(
'editor',
exec_lua([[
return vim.api.nvim_win_get_config(0).relative
]])
)
end)
end)
describe('vim.health', function()