Skip to content

Commit

Permalink
fix(image): show images on cursor only
Browse files Browse the repository at this point in the history
to avoid sticking images when shifting between tmux panes (see
3rd/image.nvim#198 )
  • Loading branch information
xamcost committed Aug 15, 2024
1 parent 5879d39 commit 0b7355f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/plugins/image.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ return {
enabled = true,
clear_in_insert_mode = false,
download_remote_images = true,
only_render_image_at_cursor = false,
only_render_image_at_cursor = true,
filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here
},
neorg = {
Expand All @@ -45,8 +45,8 @@ return {
max_height_window_percentage = 50,
window_overlap_clear_enabled = false, -- toggles images when windows are overlapped
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" },
editor_only_render_when_focused = false, -- auto show/hide images when the editor gains/looses focus
tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off)
editor_only_render_when_focused = true, -- auto show/hide images when the editor gains/looses focus
tmux_show_only_in_active_window = true, -- auto show/hide images in the correct Tmux window (needs visual-activity off)
hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp", "*.avif" }, -- render image files as images when opened
})
end,
Expand Down

0 comments on commit 0b7355f

Please sign in to comment.