From 2fee0278cde37d73c25295eed888950b2ae53e7b Mon Sep 17 00:00:00 2001 From: luba Date: Sun, 28 Apr 2024 20:53:59 -0300 Subject: [PATCH] :sparkles: Adding new image-paste pluggin With this package we can now automatically paste image on to nvim, and automatically upload to imgur --- init.lua | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index eb37a466..6f5f7d6a 100644 --- a/init.lua +++ b/init.lua @@ -893,7 +893,26 @@ require('lazy').setup({ { 'lg', 'LazyGit', desc = 'LazyGit' }, }, }, - { 'Kachyz/vim-gitmoji' }, + { + 'evanpurkhiser/image-paste.nvim', + config = function() + require('image-paste').setup { + imgur_client_id = 'ff4ff5566f179e3', + paste_script = [[xclip -selection clipboard -t image/png -o]], + } + end, + keys = { + { + 'p', + function() + require('image-paste').paste_image() + end, + mode = 'n', + desc = 'Paste image from clipboard', + }, + }, + }, + -- { 'lukas-reineke/indent-blankline.nvim', main = 'ibl', opts = {} }, -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the