3rd / image.nvim

🖼️ Bringing images to Neovim.
MIT License
1.02k stars 42 forks source link

Offset initial image generation position in config settings #147

Open MikeLemo1 opened 5 months ago

MikeLemo1 commented 5 months ago

When I render centain images in bash tmux and ueberzug the image generates ~ 6 columns too high so I'd like to lower it similar with the image:move(0, 6) command but for every image that gerts rendered in markdown, Is there a config settings to change offset position generation per image preview? It does seem to create the right amount of total "Empty lines space" for displaying the image without obstructing text data but the image needs to be offset lower though

BTW function to toggle image views for hide/show with a single button would be nice too

physicophilic commented 2 weeks ago

+1 for this.

To be clear, it would be nice to provide a default column for insertion of the image which currently is taken to be the first.

That way, the image can be "centered" or "right aligned". Currently it is only left aligned.

A related (and probably more difficult) request is the ability to write alongside the images, which would require nvim to give actual lines to the image region. This can be very useful in maximising use of screen. For example, by using wrapmargin to have soft line breaks in the text, all the sentences can be left aligned and all the images could go on the right side.