feat: allow overriding img_paste options (#1827)

This commit is contained in:
Mike Wu
2025-04-08 11:46:20 +09:00
committed by GitHub
parent 55b1baf314
commit c0d3afe0a4
2 changed files with 5 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ function M.paste_image(line)
dir_path = paste_directory:absolute(), dir_path = paste_directory:absolute(),
prompt_for_file_name = false, prompt_for_file_name = false,
filetypes = { filetypes = {
AvanteInput = { url_encode_path = true, template = "\nimage: $FILE_PATH\n" }, AvanteInput = Config.img_paste,
}, },
} }

View File

@@ -371,6 +371,10 @@ M._defaults = {
incoming = nil, incoming = nil,
}, },
}, },
img_paste = {
url_encode_path = true,
template = "\nimage: $FILE_PATH\n",
},
mappings = { mappings = {
---@class AvanteConflictMappings ---@class AvanteConflictMappings
diff = { diff = {