Skip to content

Commit

Permalink
feat: configure paste image plugin for quarto and add molten example
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Nov 28, 2023
1 parent fae2171 commit 24470a6
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion lua/plugins/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,23 @@ return {

-- paste an image to markdown from the clipboard
-- :PasteImg,
{ "dfendr/clipboard-image.nvim" },
{
"dfendr/clipboard-image.nvim",
keys = {
{ "<leader>ip", ":PasteImg<cr>", desc = "image paste" },
},
cmd = {
"PasteImg",
},
config = function()
require 'clipboard-image'.setup {
quarto = {
img_dir = "img",
affix = "![](%s)"
}
}
end
},

-- preview equations
{
Expand All @@ -709,4 +725,20 @@ return {
{ "<leader>eh", ':lua require"nabla".popup()<cr>', "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 = {
-- { "<leader>mi", ":MoltenInit<cr>", desc = "molten init" },
-- { "<leader>mv", ":<C-u>MoltenEvaluateVisual<cr>", mode = "v", desc = "molten eval visual" },
-- { "<leader>mr", ":MoltenReevaluateCell<cr>", desc = "molten re-eval cell" },
-- }
-- },

}

0 comments on commit 24470a6

Please sign in to comment.