dotfiles/nvim/.config/nvim/lua/plugins/pastify.lua

42 lines
873 B
Lua

return {
'TobinPalmer/pastify.nvim',
cmd = {
'Pastify',
'PastifyAfter'
},
-- event = {
-- 'BufReadPost'
-- }, -- Load after the buffer is read, I like to be able to paste right away
keys = {
{
noremap = true,
mode = "x",
'<leader>v',
"<cmd>PastifyAfter<CR>"
},
{
noremap = true,
mode = "n",
'<leader>v',
"<cmd>PastifyAfter<CR>"
},
{
noremap = true,
mode = "n",
'<leader>V',
"<cmd>Pastify<CR>"
}
},
config = function()
require('pastify').setup {
opts = {
local_path = '/res/'
},
ft = {
markdown = "![image]($IMG$)"
}
}
end
}