An open API service indexing awesome lists of open source software.

https://github.com/mistgc/pinmd.nvim

Picture In Markdown. A plugin written in Lua for Neovim to paste images from clipboard.
https://github.com/mistgc/pinmd.nvim

clipboard lua markdown neovim neovim-plugin nvim-lua nvim-plugin

Last synced: 16 days ago
JSON representation

Picture In Markdown. A plugin written in Lua for Neovim to paste images from clipboard.

Awesome Lists containing this project

README

          


Pinmd


Picture In Markdown


## Install

packer.nvim

```lua
use 'mistgc/pinmd.nvim'
```

lazy.nvim

```lua
{ 'mistgc/pinmd.nvim' }
```

## Usage
cmd: `PinmdPaste`

![usage](assets/pinmd.nvim_usage.gif)

## Config

Recommend Config:

```lua
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:

```lua
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 = "![](%s)",
},
asciidoc = {
affix = "image::%s[]",
},
},
}
```