Skip to content

Commit

Permalink
feat(media): add img-clip.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Sep 5, 2024
1 parent 898e8f7 commit fe7ec2f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/media/img-clip-nvim/README.md
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>
25 changes: 25 additions & 0 deletions lua/astrocommunity/media/img-clip-nvim/init.lua
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
},
},
}

0 comments on commit fe7ec2f

Please sign in to comment.