Pinmd.nvim
Picture In Markdown. A plugin written in Lua for Neovim to paste images from clipboard.
Install / Use
/learn @mistgc/Pinmd.nvimREADME
<div align="center">
<h1>Pinmd</h1>
<p>Picture In Markdown</p>
</div>
Install
packer.nvim
use 'mistgc/pinmd.nvim'
lazy.nvim
{ 'mistgc/pinmd.nvim' }
Usage
cmd: PinmdPaste

Config
Recommend Config:
options = {
files = {
link_format = "relative_path_in_vault",
location_for_new_attachments = "specified_folder_in_vault",
attachment_folder_path = "_attachments/" -- folder specified by yourself
}
}
Default Config:
options = {
files = {
link_format = "absolute_path_in_vault", -- "absolute_path_in_vault", "relative_path_in_vault"
location_for_new_attachments = "vault_folder", -- "vault_folder", "specified_folder_in_vault"
attachment_folder_path = "assets/imgs/",
},
images = {
name = function()
return tostring(os.date("%Y-%m-%d-%H-%M-%S"))
end,
},
filetype = {
default = {
affix = "%s",
},
markdown = {
affix = "",
},
asciidoc = {
affix = "image::%s[]",
},
},
}
