about summary refs log tree commit diff
path: root/config/nvim/lua/plugins/image.lua
diff options
context:
space:
mode:
authorvenomade <venomade@venomade.com>2026-02-16 17:31:16 +0000
committervenomade <venomade@venomade.com>2026-02-16 17:31:16 +0000
commita568a964fd6a9efba388b2b4919339c0b7dfe51d (patch)
tree0c6adbf753de1c0b469e911668a82c6b2002f5f8 /config/nvim/lua/plugins/image.lua
parent9d2c3f898a97de16b986d4e494f31e6c6f3d176a (diff)
MacOS Nix HEAD master
Asahi is just not perfectly usable yet.
Moved stuff, went nix.
Diffstat (limited to 'config/nvim/lua/plugins/image.lua')
-rw-r--r--config/nvim/lua/plugins/image.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/nvim/lua/plugins/image.lua b/config/nvim/lua/plugins/image.lua
new file mode 100644
index 0000000..32c3540
--- /dev/null
+++ b/config/nvim/lua/plugins/image.lua
@@ -0,0 +1,20 @@
+return {
+  '3rd/image.nvim',
+  config = function()
+    require("image").setup({
+      backend = "sixel",
+      processor = "magick_cli",
+      integrations = {
+        markdown = {
+          enabled = true,
+          only_render_image_at_cursor = true,
+          only_render_image_at_cursor_mode = "popup", -- or "inline"
+          floating_windows = true,               -- if true, images will be rendered in floating markdown windows
+        },
+      },
+      window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs" },
+      editor_only_render_when_focused = true,                                        -- auto show/hide images when the editor gains/looses focus
+    })
+  end
+
+}