mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(image): increase timeout for querying the terminal. Closes #2344
This commit is contained in:
parent
a5af4d5d37
commit
4122143240
2 changed files with 2 additions and 2 deletions
|
|
@ -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" })
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue