Skip to content

Commit f459467

Browse files
chore(build): auto-generate vimdoc (#118)
1 parent 41a901b commit f459467

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

doc/img-clip.nvim.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ below:
118118
use_absolute_path = false, ---@type boolean | fun(): boolean
119119
relative_to_current_file = false, ---@type boolean | fun(): boolean
120120

121+
-- logging options
122+
verbose = true, ---@type boolean | fun(): boolean
123+
121124
-- template options
122125
template = "$FILE_PATH", ---@type string | fun(context: table): string
123126
url_encode_path = false, ---@type boolean | fun(): boolean
@@ -514,6 +517,29 @@ Example configuration ~
514517
The above function should be bound to a keymap, e.g. through lazy.nvim.
515518

516519

520+
SNACKS.NVIM ~
521+
522+
The plugin can be integrated with Snacks.nvim picker
523+
<https://github.com/folke/snacks.nvim> which includes built-in support for
524+
previewing media files.
525+
526+
Example configuration ~
527+
528+
>lua
529+
function()
530+
Snacks.picker.files {
531+
ft = { "jpg", "jpeg", "png", "webp" },
532+
confirm = function(self, item, _)
533+
self:close()
534+
require("img-clip").paste_image({}, "./" .. item.file) -- ./ is necessary for img-clip to recognize it as path
535+
end,
536+
}
537+
end()
538+
<
539+
540+
The above function should be bound to a keymap, e.g. through lazy.nvim.
541+
542+
517543
OIL.NVIM ~
518544

519545
The plugin also integrates with oil.nvim

0 commit comments

Comments
 (0)