image.nvim icon indicating copy to clipboard operation
image.nvim copied to clipboard

Image in markdown in neovim overlap the image link text

Open svenXY opened this issue 8 months ago • 21 comments

Image

I did not configure anything, left it at the defaults - at least in neovim.

Could this be related to something in kitty.conf?

svenXY avatar Mar 19 '25 13:03 svenXY

OK, it must have to do with the kitty window size - when I maximize, it works ok, but as soon as I resize it to less than "174 cells" as kitty puts it, it overlaps. Interestingly this is 174 cells width, not height...

Height always works fine - when making it superslim, the image is scaled, which I suppose is how you intend it to be.

Any ideas?

svenXY avatar Mar 19 '25 14:03 svenXY

I also have a similar problem

Tsunami014 avatar Apr 01 '25 21:04 Tsunami014

Same problem.

Image

It seems reloading the file fixes this, and one thing that seems to cause this problem is when I have images and then I write new markdown below the images. I'll try if disabling images in insert mode would help or something.

xylix avatar Apr 15 '25 08:04 xylix

I'm having issues reproducing this, do you have more info?

3rd avatar Apr 22 '25 00:04 3rd

Yeah I am also having this issue.

trcoffman avatar Apr 25 '25 18:04 trcoffman

same issue

RafayAhmad7548 avatar Apr 28 '25 07:04 RafayAhmad7548

Same issue here. Even tried with the default kitty config

pathinthefog avatar Apr 28 '25 22:04 pathinthefog

I actually got it working by switching image nvim version to 1.10 it works fine there

RafayAhmad7548 avatar Apr 29 '25 01:04 RafayAhmad7548

I'm also having this issue with the most recent nvim version

devhaocui avatar Apr 30 '25 17:04 devhaocui

I'm having issues reproducing this, do you have more info?

fresh install of kitty and didn't really modify much for the problem to occur. Although since you are having trouble reproducing it I might suspect the possibility of an MacOS issue? Just taking a wild guess here.

devhaocui avatar May 01 '25 08:05 devhaocui

I use Linux, I'll try to test it later

Tsunami014 avatar May 01 '25 23:05 Tsunami014

I'm using Linux and I'm also having this issue

pathinthefog avatar May 01 '25 23:05 pathinthefog

Are we all using magick_cli? Does it work with magick_rock?

trcoffman avatar May 01 '25 23:05 trcoffman

Possibly yes, another commenter mentioned that in v1.10 it works and, correct me if I'm wrong, that version uses magick_rock .

pathinthefog avatar May 02 '25 00:05 pathinthefog

macos with magick_cli here

svenXY avatar May 02 '25 06:05 svenXY

having the same issue on linux using kitty

trasferetti avatar May 21 '25 20:05 trasferetti

guys i have found a workaround. Use folke's snacks.nvim/image instead. Drop this plugin. https://github.com/folke/snacks.nvim/blob/main/docs/image.md I use LazyVim so I just added a somePluginName.lua file and pasted this in and works out the box

Image

Here's my settings to adjust the height and width to my liking for now so the image isn't so big.

Image

Cheers!!!

devhaocui avatar May 22 '25 05:05 devhaocui

nice one, thanks.

I think you can use either inline or float. Since I prefer to see images only when hovering over them, I use float)true && inline=false. ymmv though

svenXY avatar May 23 '25 09:05 svenXY

Thanks @devhaocui, in my experience folke's plugin just works better. With image.nvim, apart from this issue, only first image would show up unless I get into the insert mode for some reason

swivelmargarita avatar Jun 26 '25 18:06 swivelmargarita

Fresh kitty magick_cli debian setup here, experiencing the same.

4c51d6202628b3b51e368152c053c3fb5c5f76f2 has the problem for me. Pinning to the commit before, 21909e3eb03bc738cce497f45602bf157b396672, solves it for me.

kenakofer avatar Aug 15 '25 05:08 kenakofer

should be fixed now

3rd avatar Aug 19 '25 00:08 3rd