From d62b8a97574ceb284b1424d02564326945ea4275 Mon Sep 17 00:00:00 2001 From: Aman9das <39594914+Aman9das@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:50:21 +0530 Subject: [PATCH] fix: update img-clip plugin config for new version (#85) --- lua/plugins/quarto.lua | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/lua/plugins/quarto.lua b/lua/plugins/quarto.lua index b270770..d5ee201 100644 --- a/lua/plugins/quarto.lua +++ b/lua/plugins/quarto.lua @@ -710,18 +710,20 @@ return { "HakonHarnes/img-clip.nvim", event = "BufEnter", opts = { - markdown = { - url_encode_path = true, - template = "![$CURSOR]($FILE_PATH)", - drag_and_drop = { - download_images = false, + filetypes = { + markdown = { + url_encode_path = true, + template = "![$CURSOR]($FILE_PATH)", + drag_and_drop = { + download_images = false, + }, }, - }, - quarto = { - url_encode_path = true, - template = "![$CURSOR]($FILE_PATH)", - drag_and_drop = { - download_images = false, + quarto = { + url_encode_path = true, + template = "![$CURSOR]($FILE_PATH)", + drag_and_drop = { + download_images = false, + }, }, }, },