Neovim Lua plugin to paste images from clipboard directly into markdown, asciidoc, or any text file.
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.
Neovim users who write documents with embedded images, such as technical writers, bloggers, or developers maintaining documentation in markdown or asciidoc.
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.
Neovim Lua plugin to paste image from clipboard.
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.
Allows per-filetype configuration with sensible defaults for markdown and asciidoc, enabling tailored image handling for different document types without global overrides.
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.
Enables custom Lua handlers after pasting, such as running compression scripts, demonstrated in the markdown config with the `img_handler` function calling external tools.
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.
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.
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.
🖼️ Bringing images to Neovim.
👻 A cross platform terminal image viewer for Neovim. Extensible and fast, written in Lua and C. Works on macOS and Linux.
Embed images into any markup language, like LaTeX, Markdown or Typst
🚀 Discord Rich Presence for Neovim
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.