diff --git a/lua/plugins/quarto.lua b/lua/plugins/quarto.lua index 96e3dd9..614066b 100644 --- a/lua/plugins/quarto.lua +++ b/lua/plugins/quarto.lua @@ -699,7 +699,23 @@ return { -- paste an image to markdown from the clipboard -- :PasteImg, - { "dfendr/clipboard-image.nvim" }, + { + "dfendr/clipboard-image.nvim", + keys = { + { "ip", ":PasteImg", desc = "image paste" }, + }, + cmd = { + "PasteImg", + }, + config = function() + require 'clipboard-image'.setup { + quarto = { + img_dir = "img", + affix = "![](%s)" + } + } + end + }, -- preview equations { @@ -709,4 +725,20 @@ return { { "eh", ':lua require"nabla".popup()', "hover equation" }, }, }, + + -- { + -- "benlubas/molten-nvim", + -- build = ":UpdateRemotePlugins", + -- init = function() + -- vim.g.molten_image_provider = "image.nvim" + -- vim.g.molten_output_win_max_height = 20 + -- vim.g.molten_auto_open_output = false + -- end, + -- keys = { + -- { "mi", ":MoltenInit", desc = "molten init" }, + -- { "mv", ":MoltenEvaluateVisual", mode = "v", desc = "molten eval visual" }, + -- { "mr", ":MoltenReevaluateCell", desc = "molten re-eval cell" }, + -- } + -- }, + }