kawre / leetcode.nvim

A Neovim plugin enabling you to solve LeetCode problems.
MIT License
1.04k stars 44 forks source link

fix: image display problem #77

Open m1dsolo opened 6 months ago

m1dsolo commented 6 months ago

The default image.nvim configuration may cause some image display problems. I hope the new image.nvim configuration can appear in README.md to prevent others from encountering the same problem as me.

1. too wide images

problem

too-wide-images-problem

The default value is max_width_window_percentage = nil. It will cause the the image to cross from the description area to the code area.

solve

To solve this just set max_width_window_percentage = 100.

too-wide-images-solve

2. image overlaps the console area

problem

image-overlap-problem

Image will overlaps the console area. #23 also has the same problem.

solve

To solve this just set window_overlap_clear_enabled = true.

image-overlap-solve