feat(image): better error handling + option to disable error notifications

This commit is contained in:
Folke Lemaitre 2025-02-18 22:54:24 +01:00
parent 5c0607e31a
commit 1adfd29af3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 93 additions and 17 deletions

View file

@ -102,6 +102,7 @@ local defaults = {
env = {},
---@class snacks.image.convert.Config
convert = {
notify = true, -- show a notification on error
---@type snacks.image.args
mermaid = function()
local theme = vim.o.background == "light" and "neutral" or "dark"