Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Neovim
  3. clipboard-image.nvim

clipboard-image.nvim

MITLua

Neovim Lua plugin to paste images from clipboard directly into markdown, asciidoc, or any text file.

GitHubGitHub
338 stars56 forks0 contributors

What is clipboard-image.nvim?

Clipboard Image is a Neovim plugin that simplifies inserting images from your system clipboard into documents. It automatically saves images to a configurable directory and inserts the appropriate file path with formatting. It solves the problem of manually saving clipboard images and writing markdown or asciidoc image syntax.

Target Audience

Neovim users who write documents with embedded images, such as technical writers, bloggers, or developers maintaining documentation in markdown or asciidoc.

Value Proposition

Developers choose this plugin for its zero-config setup with sensible defaults for markdown and asciidoc, cross-platform clipboard support, and extensive Lua-based customization for advanced workflows like dynamic naming and post-paste image processing.

Overview

Neovim Lua plugin to paste image from clipboard.

Use Cases

Best For

  • Quickly pasting screenshots into markdown documentation without leaving Neovim.
  • Writing blog posts or notes in asciidoc format with embedded images from the clipboard.
  • Automating image organization with custom directory structures and timestamp-based naming.
  • Integrating custom post-paste scripts, such as image compression or optimization, directly into the paste workflow.
  • Maintaining different image handling configurations for different filetypes (e.g., markdown vs. asciidoc) within a single plugin.
  • Users on mixed OS environments (Linux/X11/Wayland, macOS, Windows/WSL) needing consistent clipboard image pasting in Neovim.

Not Ideal For

  • Systems without the required clipboard tools (xclip, wl-clipboard, pngpaste) installed or accessible.
  • Workflows that involve embedding non-image content (e.g., PDFs, text files) directly from the clipboard.
  • Teams using editors other than Neovim, such as standard Vim or graphical IDEs with built-in media handling.

Pros & Cons

Pros

Cross-Platform Clipboard Support

Works on Linux (X11/Wayland), macOS, and Windows/WSL with appropriate system tools, as evidenced by the README's badges and dependency list for each OS.

Filetype-Specific Customization

Allows per-filetype configuration with sensible defaults for markdown and asciidoc, enabling tailored image handling for different document types without global overrides.

Flexible Naming and Directories

Supports dynamic image naming (e.g., timestamp-based) and nested directory structures via Lua config, as shown in the example with `img_dir` as a table and custom `img_name` functions.

Post-Paste Automation

Enables custom Lua handlers after pasting, such as running compression scripts, demonstrated in the markdown config with the `img_handler` function calling external tools.

Cons

External Tool Dependencies

Relies on system-specific clipboard tools (xclip, wl-clipboard, pngpaste) that must be installed separately, adding complexity and potential failure points on minimal or restricted environments.

Lua Configuration Overhead

Advanced features require writing Lua functions for options like `img_name` and `img_handler`, which can be a barrier for users unfamiliar with Neovim's Lua ecosystem or scripting.

Limited Default Filetype Support

Only markdown and asciidoc have out-of-the-box configurations; other filetypes need manual setup, as admitted in the README with guidance to check `vim.bo.filetype` for customization.

Frequently Asked Questions

Quick Stats

Stars338
Forks56
Contributors0
Open Issues8
Last commit2 years ago
CreatedSince 2021

Tags

#productivity#neovim-plugin#clipboard#note-taking#asciidoc#neovim-lua#markdown#neovim#lua#neovim-lua-plugin#nvim

Built With

N
Neovim
L
Lua

Included in

Neovim20.6k
Auto-fetched 1 day ago

Related Projects

image.nvimimage.nvim

🖼️ Bringing images to Neovim.

Stars1,999
Forks99
Last commit11 days ago
hologram.nvimhologram.nvim

👻 A cross platform terminal image viewer for Neovim. Extensible and fast, written in Lua and C. Works on macOS and Linux.

Stars1,433
Forks33
Last commit2 years ago
img-clip.nvimimg-clip.nvim

Embed images into any markup language, like LaTeX, Markdown or Typst

Stars916
Forks33
Last commit5 months ago
cord.nvimcord.nvim

🚀 Discord Rich Presence for Neovim

Stars639
Forks24
Last commit1 month ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub