fix(image): increase timeout for querying the terminal. Closes #2344

This commit is contained in:
Folke Lemaitre 2025-10-25 06:52:55 +02:00
parent a5af4d5d37
commit 4122143240
No known key found for this signature in database
GPG key ID: 9B52594D560070AB
2 changed files with 2 additions and 2 deletions

View file

@ -304,7 +304,7 @@ function M.health()
require("snacks.image.terminal").detect(function()
detected = true
end)
vim.wait(500, function()
vim.wait(1500, function()
return detected
end, 10)
Snacks.health.have_tool({ "kitty", "wezterm", "ghostty" })

View file

@ -259,7 +259,7 @@ function M.detect(cb)
end,
})
timer:start(200, 0, function()
timer:start(1000, 0, function()
vim.schedule(function()
pcall(vim.api.nvim_del_autocmd, id)
end)