Skip to content

Commit

Permalink
docs: add new api method
Browse files Browse the repository at this point in the history
  • Loading branch information
HakonHarnes committed Mar 1, 2024
1 parent e517314 commit 70aa3ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ Consider binding `PasteImage` to something like `<leader>p`.
You can also use the Lua equivalent, which allows you to override your configuration by passing the options directly to the function:

```lua
require("img-clip").pasteImage({ use_absolute_path = false, file_name = "image.png" })
require("img-clip").paste_image(opts?, input?) -- input is optional and can be a file path or URL
```

Example:

```lua
require("img-clip").paste_image({ use_absolute_path = false, file_name = "image.png" }, "/path/to/file.png")
```

## Configuration
Expand Down

0 comments on commit 70aa3ab

Please sign in to comment.