[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.
![a](https://private-user-images.githubusercontent.com/120295547/338825014-36bfeda3-32a6-4574-84e6-a4ef09e15c31.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NzQ1MDMsIm5iZiI6MTcyNTU3NDIwMywicGF0aCI6Ii8xMjAyOTU1NDcvMzM4ODI1MDE0LTM2YmZlZGEzLTMyYTYtNDU3NC04NGU2LWE0ZWYwOWUxNWMzMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNVQyMjEwMDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYjM5Nzc2ODU1ZTEyNDE0MTNiN2FjNGFkNmY5YWU2NjQwMzJmMDViZjZhOGQ5YTNlNWNkYzllOWJmMDlhNTZhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.6HZLWa6FWeOmmfW8qRH0gMF2MBs7b_4rnjiziFa-Ot0)
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