nvim-config/lua/plugins/img-clip.lua

19 lines
385 B
Lua
Raw Permalink Normal View History

2024-02-17 15:44:34 -08:00
return {
"HakonHarnes/img-clip.nvim",
event = "BufEnter",
opts = {
2024-10-20 19:35:38 -07:00
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
use_absolute_path = true,
},
2024-02-17 15:44:34 -08:00
},
keys = {
-- suggested keymap
{ "<leader>p", "<cmd>PasteImage<cr>", desc = "Paste clipboard image" },
},
}