3rd / image.nvim

🖼️ Bringing images to Neovim.
MIT License
812 stars 35 forks source link

fix: images rendering below extmarks on same line #85

Closed benlubas closed 7 months ago

benlubas commented 7 months ago

fixes: #84

Currently: The virtual text is added after the image, so nvim renders the image padding first, and then the text. But we're assuming that the image should be below all of the extmarks that are on the same line. This is something that I missed in my last PR

image

After this PR: Image renders with it's extmark b/c we break out of a loop when we find the images own extmark

image
3rd commented 7 months ago

Ah great catch, thank you :heart:

3rd commented 7 months ago

Hey, I had to revert the changes here because it was stacking images, maybe we find another way.

image

benlubas commented 7 months ago

I'll take a look later tonight or tomorrow.