mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(image): don't fallback to convert
on windows, since that is a system tool
This commit is contained in:
parent
20e5b0fdbf
commit
c1a1984fdb
2 changed files with 7 additions and 1 deletions
|
@ -193,7 +193,8 @@ end
|
|||
---@private
|
||||
function M.health()
|
||||
Snacks.health.have_tool({ "kitty", "wezterm", "ghostty" })
|
||||
if not Snacks.health.have_tool({ "magick", "convert" }) then
|
||||
local is_win = jit.os:find("Windows")
|
||||
if not Snacks.health.have_tool({ "magick", not is_win and "convert" or nil }) then
|
||||
Snacks.health.error("`magick` is required to convert images. Only PNG files will be displayed.")
|
||||
end
|
||||
local env = M.terminal.env()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue