edluffy / hologram.nvim

👻 A cross platform terminal image viewer for Neovim. Extensible and fast, written in Lua and C. Works on macOS and Linux.
MIT License
1.29k stars 31 forks source link

Image placement doesn't appear to factor in wrapped lines #31

Open erwin opened 1 year ago

erwin commented 1 year ago

This plugin is so cool! I look forward to when I can post issues and browse github while viewing images all without leaving my terminal... The day when developers not doing front-end web can have zero browser windows open is finally approaching!

I noticed that without line wrapping, the image placement is mostly pretty good. When I turn on line wrapping though, image placement is as though line wrapping is still no on.

Would be awesome to have line wrapping awareness, since a lot of images will be embedding in markdown files that look best in my view when they are not hard wrapped, so that any size terminal will work.

Peek 2022-11-29 11-46

HanneMaes commented 2 months ago

I'm having the same issue.

I didn't know line wrapping was the issue, thanks for pointing that out!