From fa043bf8ce4e9bbe1465adbf362fd46507f28ed3 Mon Sep 17 00:00:00 2001 From: Josef Moudrik Date: Thu, 29 Aug 2024 17:17:44 +0200 Subject: [PATCH] config.lua: improve check for `img-clip` (#363) --- lua/avante/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/avante/config.lua b/lua/avante/config.lua index 68c252c..88f6506 100644 --- a/lua/avante/config.lua +++ b/lua/avante/config.lua @@ -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