Skip to content

Commit 3682b34

Browse files
chore(build): auto-generate vimdoc (#29)
1 parent 9f181fb commit 3682b34

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/img-clip.nvim.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,15 @@ and the |img-clip.nvim-demonstration|
244244
after insertion if use_cursor_in_template is
245245
true.
246246
---------------------------------------------------------------------------------------
247+
Templates can also be defined using functions with the above placeholders
248+
available as function parameters:
249+
250+
>lua
251+
template = function(context)
252+
return "![" .. context.cursor .. "](" .. context.file_path .. ")"
253+
end
254+
<
255+
247256

248257
DRAG AND DROP *img-clip.nvim-img-clip.nvim-drag-and-drop*
249258

0 commit comments

Comments
 (0)