Skip to content

Commit d61303f

Browse files
authored
feat(media): add img-clip.nvim (#1194)
1 parent 40497b1 commit d61303f

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 📋 img-clip.nvim
2+
3+
Effortlessly embed images into any markup language, like LaTeX, Markdown or Typst
4+
5+
**Repository:** <https://github.com/HakonHarnes/img-clip.nvim>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
return {
2+
"HakonHarnes/img-clip.nvim",
3+
cmd = { "PasteImage", "ImgClipDebug", "ImgClipConfig" },
4+
specs = {
5+
{
6+
"AstroNvim/astrocore",
7+
opts = {
8+
mappings = {
9+
n = {
10+
["<Leader>P"] = { "<CMD>PasteImage<CR>", desc = "Paste image from system clipboard" },
11+
},
12+
},
13+
},
14+
},
15+
},
16+
opts = {
17+
default = {
18+
prompt_for_file_name = false,
19+
drag_and_drop = {
20+
insert_mode = true,
21+
},
22+
use_absolute_path = vim.fn.has "win32" == 1, -- default to absolute path for windows users
23+
},
24+
},
25+
}

0 commit comments

Comments
 (0)