aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-03-08 11:50:52 +0800
committerGitHub <noreply@github.com>2025-03-08 03:50:52 +0000
commitb2fa51bf15252cced8032f5a995ba5252840d7d0 (patch)
tree820c2baa43f05ab9b4286779f4e8fd7b6787dd97
parentc38c88edfd015e8badbd11941030d7d85b5b1dc7 (diff)
downloadrneovim-b2fa51bf15252cced8032f5a995ba5252840d7d0.tar.gz
rneovim-b2fa51bf15252cced8032f5a995ba5252840d7d0.tar.bz2
rneovim-b2fa51bf15252cced8032f5a995ba5252840d7d0.zip
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
-rw-r--r--test/functional/plugin/lsp/utils_spec.lua1
1 files changed, 1 insertions, 0 deletions
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('<Ignore>') -- Prevent CursorMoved closing the next float immediately
exec_lua([[
vim.lsp.util.open_floating_preview({ '```lua', 'local foo', '```' }, 'markdown', {
border = 'single',