An open API service indexing awesome lists of open source software.

https://github.com/nathom/imagepaste.nvim

Paste images from clipboard on macOS into markdown files
https://github.com/nathom/imagepaste.nvim

Last synced: about 1 month ago
JSON representation

Paste images from clipboard on macOS into markdown files

Awesome Lists containing this project

README

        

# imagepaste.nvim

> Only tested on macOS as of now

Paste images from your clipboard into the buffer.

Supported filetypes:

- [x] LaTeX
- [x] markdown

## Setup

Install `pngpaste`.

With lazy.nvim:

```lua
return { "nathom/imagepaste.nvim" }
```

## Usage

The plugin only sets up one macro, `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