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
- Host: GitHub
- URL: https://github.com/nathom/imagepaste.nvim
- Owner: nathom
- Created: 2021-11-29T20:08:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-23T23:16:53.000Z (over 1 year ago)
- Last Synced: 2025-02-13T04:43:56.863Z (3 months ago)
- Language: Lua
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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