@@ -405,13 +405,6 @@ carefully and customize it to your needs:
405405 -- Either 'wiki' or 'markdown' .
406406 preferred_link_style = "wiki",
407407
408- -- Optional, customize the default name or prefix when pasting images via `:ObsidianPasteImg` .
409- ---@return string
410- image_name_func = function()
411- -- Prefix image names with timestamp.
412- return string.format("%s-", os.time())
413- end,
414-
415408 -- Optional, boolean or a function that takes a filename and returns a boolean.
416409 -- `true` indicates that you don't want obsidian.nvim to manage frontmatter.
417410 disable_frontmatter = false,
@@ -584,6 +577,14 @@ carefully and customize it to your needs:
584577 -- If this is a relative path it will be interpreted as relative to the vault root.
585578 -- You can always override this per image by passing a full path to the command instead of just a filename.
586579 img_folder = "assets/imgs", -- This is the default
580+
581+ -- Optional, customize the default name or prefix when pasting images via `:ObsidianPasteImg` .
582+ ---@return string
583+ img_name_func = function()
584+ -- Prefix image names with timestamp.
585+ return string.format("%s-", os.time())
586+ end,
587+
587588 -- A function that determines the text to insert in the note when pasting an image.
588589 -- It takes two arguments, the `obsidian.Client` and an `obsidian.Path` to the image file.
589590 -- This is the default implementation.
0 commit comments