test(lsp/utils): prevent CursorMoved closing float immediately (#32782)

This fixes the flakiness observed in https://github.com/neovim/neovim/actions/runs/13733258040/job/38413757162?pr=32780
This commit is contained in:
zeertzjq
2025-03-08 11:50:52 +08:00
committed by GitHub
parent c38c88edfd
commit b2fa51bf15

View File

@@ -368,6 +368,7 @@ describe('vim.lsp.util', function()
]])
-- Correct height when float inherits 'conceallevel' >= 2 #32639
command('close | set conceallevel=2')
feed('<Ignore>') -- Prevent CursorMoved closing the next float immediately
exec_lua([[
vim.lsp.util.open_floating_preview({ '```lua', 'local foo', '```' }, 'markdown', {
border = 'single',