/imagepaste.nvim

Paste images from clipboard on macOS into markdown files

Primary LanguageLua

imagepaste.nvim

Only tested on macOS as of now

Paste images from your clipboard into the buffer.

Supported filetypes:

  • LaTeX
  • markdown

Setup

Install pngpaste.

With lazy.nvim:

return { "nathom/imagepaste.nvim" }

Usage

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