config.lua: improve check for img-clip (#363)

This commit is contained in:
Josef Moudrik 2024-08-29 17:17:44 +02:00 committed by GitHub
parent b6f3e2db44
commit fa043bf8ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,7 +187,7 @@ function M.setup(opts)
end
M.support_paste_image = function()
local supported = Utils.has("img-clip.nvim")
local supported = Utils.has("img-clip.nvim") or Utils.has("img-clip")
if not supported then
Utils.warn("img-clip.nvim is not installed. Pasting image will be disabled.", { once = true })
end