[answer] Different icon sizes #7533
b1nhack
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This issue often occurs in Neovim, such as with lazy.nvim or nvim-cmp.
In lazy.nvim, the same icon has different sizes on different lines.
You can fix this issue by setting pseudo-transparency to 0.
in nvim-cmp
root cause
As explained in the Neovim documentation for the winblend option:
Enables pseudo-transparency for a floating window.
These transparency effects are all pseudo-transparency.
This means that floating windows with pseudo-transparency enabled render background characters at the same level. The background and foreground are not actually distinguished but are blended together.
However, Kitty determines the size of icons by following them with spaces. When pseudo-transparency is enabled, if there are background characters under the spaces following the icons, the spaces will blend with the characters, causing the spaces to disappear. This results in icons appearing in different sizes.
Beta Was this translation helpful? Give feedback.
All reactions