onsails / lspkind.nvim

vscode-like pictograms for neovim lsp completion items
MIT License
1.5k stars 37 forks source link

Inconsistent symbol sizing #55

Open maxcountryman opened 2 years ago

maxcountryman commented 2 years ago

Hi there, first off, thank you for this wonderful plugin! It's really incredible how good a TUI can look these days and it's the polish like this plugin provides which really elevates the experience.

One thing I've noticed is that some of the codeicons are displayed of differing sizes and are clipped. I can't discern a pattern to this behavior: for instance, it might make sense if the width were varying between lines (see the screenshot below) but that isn't visibly the case.

Here's the environment I'm using:

I've installed the VS Code codeicons (as you can hopefully see below) and am using a NerdFont-patched version of FiraCode.

Screen Shot 2022-09-21 at 8 01 16 AM
Lokaltog commented 2 years ago

I've experienced the same issue. Turns out this is caused by pumblend. As you can see on your screenshot every small/clipped icon has a faded/blended letter to the right of the icon. This causes your terminal emulator to render the icon in one cell instead of two since the second cell is occupied by the blended character. Disabling pumblend resolves this issue.

maxcountryman commented 2 years ago

Disabling pumblend resolves this issue.

Interesting. It's unfortunate it causes the issue in the first place. Perhaps a Neovim bug?