mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(image): let healthcheck wait till terminal detection is done
This commit is contained in:
parent
d129bc8a4d
commit
b029511abb
1 changed files with 7 additions and 0 deletions
|
|
@ -300,6 +300,13 @@ end
|
|||
|
||||
---@private
|
||||
function M.health()
|
||||
local detected = false
|
||||
require("snacks.image.terminal").detect(function()
|
||||
detected = true
|
||||
end)
|
||||
vim.wait(500, function()
|
||||
return detected
|
||||
end, 10)
|
||||
Snacks.health.have_tool({ "kitty", "wezterm", "ghostty" })
|
||||
local is_win = jit.os:find("Windows")
|
||||
if not Snacks.health.have_tool({ "magick", not is_win and "convert" or nil }) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue