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(),
|
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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user