From b2fa51bf15252cced8032f5a995ba5252840d7d0 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 8 Mar 2025 11:50:52 +0800 Subject: 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 --- test/functional/plugin/lsp/utils_spec.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/plugin/lsp/utils_spec.lua b/test/functional/plugin/lsp/utils_spec.lua index 683e2a7641..7bfb354c2e 100644 --- a/test/functional/plugin/lsp/utils_spec.lua +++ b/test/functional/plugin/lsp/utils_spec.lua @@ -368,6 +368,7 @@ describe('vim.lsp.util', function() ]]) -- Correct height when float inherits 'conceallevel' >= 2 #32639 command('close | set conceallevel=2') + feed('') -- Prevent CursorMoved closing the next float immediately exec_lua([[ vim.lsp.util.open_floating_preview({ '```lua', 'local foo', '```' }, 'markdown', { border = 'single', -- cgit