about summary refs log tree commit diff
path: root/.config/nvim/lua/plugins/image.lua
blob: 32c35409f940af63d70d15ec5d26510da271eab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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

}