Adding new image-paste pluggin

With this package we can now automatically paste image on to nvim, and automatically upload to imgur
This commit is contained in:
luba 2024-04-28 20:53:59 -03:00
parent e17cfa6529
commit 2fee0278cd
1 changed files with 20 additions and 1 deletions

View File

@ -893,7 +893,26 @@ require('lazy').setup({
{ '<leader>lg', '<cmd>LazyGit<cr>', desc = 'LazyGit' }, { '<leader>lg', '<cmd>LazyGit<cr>', 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 = {
{
'<leader>p',
function()
require('image-paste').paste_image()
end,
mode = 'n',
desc = 'Paste image from clipboard',
},
},
},
-- { 'lukas-reineke/indent-blankline.nvim', main = 'ibl', opts = {} }, -- { '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 -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the