feat: allow overriding img_paste options (#1827)
This commit is contained in:
@@ -42,7 +42,7 @@ function M.paste_image(line)
|
||||
dir_path = paste_directory:absolute(),
|
||||
prompt_for_file_name = false,
|
||||
filetypes = {
|
||||
AvanteInput = { url_encode_path = true, template = "\nimage: $FILE_PATH\n" },
|
||||
AvanteInput = Config.img_paste,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -371,6 +371,10 @@ M._defaults = {
|
||||
incoming = nil,
|
||||
},
|
||||
},
|
||||
img_paste = {
|
||||
url_encode_path = true,
|
||||
template = "\nimage: $FILE_PATH\n",
|
||||
},
|
||||
mappings = {
|
||||
---@class AvanteConflictMappings
|
||||
diff = {
|
||||
|
||||
Reference in New Issue
Block a user