Neovim plugin for copy image and paste to markdown
return {
"thek4n/mdimage.nvim",
config = function()
require("mdimage").setup({
target_path = vim.env.HOME .. "/.notes/.img",
})
end
}
By default plugin will copy image to current work directory
local default_config = {
target_path = "./.img"
}
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