22 lines
614 B
Lua
22 lines
614 B
Lua
---@module "utils.plugins"
|
|
---@type Plugin
|
|
return {
|
|
configures = "images",
|
|
configure = function(load)
|
|
load("3rd/image.nvim")
|
|
|
|
require("image").setup({
|
|
integrations = {
|
|
markdown = {
|
|
enabled = true,
|
|
clear_in_insert_mode = false,
|
|
download_remote_images = true,
|
|
only_render_image_at_cursor = false,
|
|
only_render_image_at_cursor_mode = "popup", -- or "inline"
|
|
floating_windows = true, -- if true, images will be rendered in floating markdown windows
|
|
filetypes = { "markdown", "vimwiki", "latex" }, -- markdown extensions (ie. quarto) can go here
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
}
|