added support for images in buffer to help with vimtex

This commit is contained in:
venus
2026-09-05 17:00:38 -05:00
parent acd9f63ad6
commit 6a9b380f0c
+24
View File
@@ -0,0 +1,24 @@
return {
"3rd/image.nvim",
event = "VeryLazy",
opts = {
backend = "kitty",
processor = "magick_cli", -- Uses your system's ImageMagick CLI directly
integrations = {
markdown = {
enabled = true,
clear_in_insert_mode = false,
download_remote_images = true,
only_render_image_at_cursor = false,
},
},
max_width = nil,
max_height = nil,
max_height_window_percentage = math.huge,
max_width_window_percentage = math.huge,
window_overlap_clear_enabled = true,
-- Automatically hijack and render PDF files inside Neovim buffers
hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp", "*.pdf" },
},
}