Open mixolydianmel opened 6 months ago
I'm not sure how far it is related to conceallevel=2
, as setting it to 0 (on the fly or on the config) doesn't change anything.
My issue is that in a fresh file like this one, the first line with an image aligns properly, but the rest do not. The pattern is that in the second line with a link, the image is 1 line above than it should, on the next images 2 lines, and then it keeps changing depending on my scroll position on the following images between 1 or 2 lines of wrong offset.
![neovim logo](https://static-00.iconduck.com/assets.00/apps-neovim-icon-2048x2048-21jvoi4h.png)
![neovim logo](https://static-00.iconduck.com/assets.00/apps-neovim-icon-2048x2048-21jvoi4h.png)
![neovim logo](https://static-00.iconduck.com/assets.00/apps-neovim-icon-2048x2048-21jvoi4h.png)
![neovim logo](https://static-00.iconduck.com/assets.00/apps-neovim-icon-2048x2048-21jvoi4h.png)
I'm using a fresh installation of the plugin, I followed the readme and installed all the necessary dependencies.
This is my config.
TLDR, I'm using Alacritty and ueberzug
backend (it works fine with ranger), just tweaked the max sizes so that I the images don't fill up most of my screen, and set to true clear_on_insert_mode
.
With
Same file with
The terminal in the first image is Alacritty. If I test with the
ueberzug
backend:kitty
backend:ueberzug
backend in Kitty I get the same result. Both of these images are of anorg
file withconceallevel=2
. It looks like not only are the images offset on thex
andy
, but they are also being force-set to the max possible height given my config, which iswhich would take the default maximum height of 50% of the window height, which I confirmed while messing around with that option in the config. Setting the max window height percentage to 25 doesn't change the offset but does make the image smaller.
I use Hyprland on NixOS (though I'm rather new to both), and I was browsing github issues for similar problems when I eventually stumbled across jstkdng/ueberzugpp #122, but upon testing with a 1:1 monitor scale factor the results did not change. As suggested in this issue, I tried to use ueberzug on the command line to see if the offset was caused by Hyprland instead, but it worked fine.
Neovim version & info: