From 8f31e191602b053eeea6d72da804d02bccec01eb Mon Sep 17 00:00:00 2001 From: David Ibia Date: Sun, 10 Mar 2024 12:19:57 +0100 Subject: [PATCH] feat(image.lua): add configuration for image.nvim plugin to support displaying images in the editor with customizable options --- lua/absolute/plugins/image.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lua/absolute/plugins/image.lua diff --git a/lua/absolute/plugins/image.lua b/lua/absolute/plugins/image.lua new file mode 100644 index 0000000..92fd84e --- /dev/null +++ b/lua/absolute/plugins/image.lua @@ -0,0 +1,14 @@ +return { + -- see the image.nvim readme for more information about configuring this plugin + "3rd/image.nvim", + opts = { + backend = "kitty", -- whatever backend you would like to use + max_width = 100, + max_height = 12, + max_height_window_percentage = math.huge, + max_width_window_percentage = math.huge, + window_overlap_clear_enabled = true, -- toggles images when windows are overlapped + window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" }, + tmux_show_only_in_active_window = true, + }, +}