nvim-tree / nvim-web-devicons

lua `fork` of vim-web-devicons for neovim
MIT License
1.98k stars 183 forks source link

Different icon sizes shown by nvim-tree and Diffview #225

Closed gegoune closed 1 year ago

gegoune commented 1 year ago

Hey, trying to get my head around an issue I just observed, seems like two plugins using nvim-web-devicons show icons differently:

sizes

On the left is nvim-tree, on the right Diffview. Terminal emulator is Wezterm and when I copy both of those glyphs with mouse and try to get their codes both return the same:

 0     \u{e620}     x_adv=10 cells=1  glyph=i_seti_lua,495  wezterm.font("Symbols Nerd Font Mono", {weight="Regular", stretch="Normal", style="Normal"})
                                      <built-in>, BuiltIn

Once copied by mouse and pasted to other window they show as bigger size (right on screenshot). Any ideas where this difference might be coming from?

(related https://github.com/nvim-tree/nvim-web-devicons/issues/224?)

T-727 commented 1 year ago

Wezterm by default allows glyphs to overflow when the next character is a space, could be related? (wiki)

gegoune commented 1 year ago

That's it. Feeling bit silly now, thank you for pointers!