-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(media): add
img-clip.nvim
(#1194)
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 📋 img-clip.nvim | ||
|
||
Effortlessly embed images into any markup language, like LaTeX, Markdown or Typst | ||
|
||
**Repository:** <https://github.com/HakonHarnes/img-clip.nvim> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
return { | ||
"HakonHarnes/img-clip.nvim", | ||
cmd = { "PasteImage", "ImgClipDebug", "ImgClipConfig" }, | ||
specs = { | ||
{ | ||
"AstroNvim/astrocore", | ||
opts = { | ||
mappings = { | ||
n = { | ||
["<Leader>P"] = { "<CMD>PasteImage<CR>", desc = "Paste image from system clipboard" }, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
opts = { | ||
default = { | ||
prompt_for_file_name = false, | ||
drag_and_drop = { | ||
insert_mode = true, | ||
}, | ||
use_absolute_path = vim.fn.has "win32" == 1, -- default to absolute path for windows users | ||
}, | ||
}, | ||
} |