lambdalisue / vim-glyph-palette

🎨 An universal palette for Nerd Fonts
MIT License
126 stars 13 forks source link

Glyphs appear offset in nerd tree #17

Open nionios opened 3 years ago

nionios commented 3 years ago

Hello,

I am on Arch Linux, kernel version 5.10.35-1-lts. My Nvim is in version v0.4.4

The following occurs in NerdTree when I install and use the glyph-palette.

offset

Any idea as to why this happens?

nionios commented 3 years ago

Followup: Seems not reproducible in Alacritty, I only have this problem on Konsole

lambdalisue commented 3 years ago

I'm sorry for the late reply. Are you sure that it is caused by this plugin? I guess that kind of behavior could be seen without this plugin.

awelormro commented 10 months ago

Also faced the issue, but it was pretty simple to face it, just add an space in a custom list for it, put this into your vimrc and it will work:

let g:glyph_palette#palette = { \ 'GlyphPalette1': [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', \ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', \ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], \ 'GlyphPalette2': ['', ' ', ' ', ' ', ' ', ' ', '󰡄 ', ' ', ' ', ' ', ' ', ' ', ' '], \ 'GlyphPalette3': ['λ', ' ', ' ', ' ', ' ', ' ', ' ', \ '', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', \ ' ', ' ', ' ', ' ', ' ', ' ', ' ', '', '', ' ', \ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], \ 'GlyphPalette4': [' ', ' ', ' ', ' ', ' ', \ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', \ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], \ 'GlyphPalette6': [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], \ 'GlyphPalette7': [' ', ' ', ' ', ' ', ' ', ' ', ' ', \ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '] , \ 'GlyphPalette9': [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], \ 'GlyphPaletteDirectory': [' ', ' ', ' ', ' ', ' ', ' '], }

lambdalisue commented 10 months ago

If you are using nerdfont.vim, from this commit (https://github.com/lambdalisue/nerdfont.vim/commit/213a00b1ed5ae166c12e3ba632d3108296b03667), it automatically fix the width of glyphs.

awelormro commented 10 months ago

Is breaking all the with glyphs, lightline, airline,buffet, buftabline, etc, still the short answer to provide that statusline glyph and disabling the fix is correcting

lambdalisue commented 10 months ago

Well, glyph-palette itself doesn't touch widths... Do you mean nerdfont.vim breaks glpyhs in lightline, airline, buffet, buftabline, etc? or glyph-palette itself breaks somehow?

awelormro commented 10 months ago

it also uses to change to the default window background, but implementing my previous suggestion it works nice and smooth :), idk if there is a conflict with the background applications, but it works well when the spacing is declared

lambdalisue commented 10 months ago

Interesting. Similar issue is reported (https://github.com/lambdalisue/fern-renderer-nerdfont.vim/issues/26#issuecomment-1846073643) so we might need extra space for syntax highlight in any case. I'll investigate. Thanks for the comment @awelormro

lambdalisue commented 10 months ago

@nionios @awelormro Does #22 solve issue?

awelormro commented 10 months ago

Did not, still in the need to add spaces from the glyph invocation