In case of having a multi-tab setup with multiple Markdown tabs with images sometimes when I change tab the image from the one I switched away from is still rendered and remains rendered after I switch to yet another one until I close and reopen nvim.
return {
'3rd/image.nvim',
opts = {
backend = "kitty",
processor = "magick_cli", -- or "magick_rock"
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 = "inline",
floating_windows = false, -- if true, images will be rendered in floating markdown windows
filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here
},
html = {
enabled = true,
},
},
max_width = nil,
max_height = nil,
max_width_window_percentage = 80,
max_height_window_percentage = 50,
scale_factor = 1.0,
}
}
In case of having a multi-tab setup with multiple Markdown tabs with images sometimes when I change tab the image from the one I switched away from is still rendered and remains rendered after I switch to yet another one until I close and reopen nvim.