aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/health_spec.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2025-01-08 00:09:01 +0800
committerGitHub <noreply@github.com>2025-01-07 08:09:01 -0800
commitb12b91c2743954dbe8599caa60e58e5d74aa4e76 (patch)
tree54c5a31e53e96fa15a2218e6133275796f08b076 /test/functional/plugin/health_spec.lua
parentd9ee0d2984e5fc30cb032785d32f42c72c7e64e1 (diff)
downloadrneovim-b12b91c2743954dbe8599caa60e58e5d74aa4e76.tar.gz
rneovim-b12b91c2743954dbe8599caa60e58e5d74aa4e76.tar.bz2
rneovim-b12b91c2743954dbe8599caa60e58e5d74aa4e76.zip
feat(health): show :checkhealth in floating window #31086
Problem: health can not shown in a floating window Solution: add g:health variable
Diffstat (limited to 'test/functional/plugin/health_spec.lua')
-rw-r--r--test/functional/plugin/health_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua
index 753da64522..406b5c3c16 100644
--- a/test/functional/plugin/health_spec.lua
+++ b/test/functional/plugin/health_spec.lua
@@ -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()