Files
Nvim/lua/plugins/image.lua
T

25 lines
657 B
Lua

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" },
},
}