/mdimage.nvim

Neovim plugin for paste image link to markdown

Primary LanguageLua

mdimage.nvim

InstallUsage


Neovim plugin for copy image and paste to markdown

Install

return {
    "thek4n/mdimage.nvim",
    config = function()
        require("mdimage").setup({
            target_path = vim.env.HOME .. "/.notes/.img",
        })
    end
}

Default configuration

By default plugin will copy image to current work directory

local default_config = {
    target_path = "./.img"
}

Usage

Command:
:PasteImage ~/path/to/image
will copy specified image to target directory and paste link to image

Command:
:PasteImage
will copy image from clipboard to target directory and paste link to image