From 6a9b380f0cbc8b7adee3f6362ee0d90d5ff1259d Mon Sep 17 00:00:00 2001 From: venus Date: Sat, 5 Sep 2026 17:00:38 -0500 Subject: [PATCH] added support for images in buffer to help with vimtex --- lua/plugins/image.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/plugins/image.lua diff --git a/lua/plugins/image.lua b/lua/plugins/image.lua new file mode 100644 index 0000000..d831d1c --- /dev/null +++ b/lua/plugins/image.lua @@ -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" }, + }, +} +