nvim-snappy/lua/plugins/libs/image-nvim.lua

30 lines
615 B
Lua
Raw Normal View History

2025-02-12 11:49:02 +01:00
return {
"3rd/image.nvim",
commit = "7704e1d03d952393774dc7d00a98d8e127086ba4",
lazy = false,
2025-02-13 08:58:49 +01:00
enabled = not vim.g.neovide,
2025-02-12 11:49:02 +01:00
cmd = {
'ImageReport',
},
opts = {
backend = "kitty",
processor = "magick_rock",
integrations = {
markdown = {
only_render_image_at_cursor = true,
--floating_windows = true,
filetypes = { "markdown", "quarto" },
},
},
max_width = 100,
max_height = 12,
max_height_window_percentage = math.huge,
max_width_window_percentage = math.huge,
window_overlap_clear_enabled = true,
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" },
}
}