mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 08:44:06 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user