Only tested on macOS as of now
Paste images from your clipboard into the buffer.
Supported filetypes:
- LaTeX
- markdown
Install pngpaste
.
With lazy.nvim:
return { "nathom/imagepaste.nvim" }
The plugin only sets up one macro, <leader>ip
, which does the following
- create a
resources
directory in project root - Fetch the image from clipboard and write it to a file
- Format the image link correctly based on the filetype and write to buffer