vim-glyph-palette icon indicating copy to clipboard operation
vim-glyph-palette copied to clipboard

Glyphs appear offset in nerd tree

Open nionios opened this issue 4 years ago • 10 comments

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 avatar Jun 01 '21 10:06 nionios

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

nionios avatar Jun 27 '21 11:06 nionios

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.

lambdalisue avatar Jul 21 '21 00:07 lambdalisue

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': [' ', ' ', ' ', ' ', ' ', ' '], }

awelormro avatar Nov 27 '23 18:11 awelormro

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

lambdalisue avatar Nov 28 '23 11:11 lambdalisue

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

awelormro avatar Dec 03 '23 20:12 awelormro

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?

lambdalisue avatar Dec 04 '23 05:12 lambdalisue

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

awelormro avatar Dec 08 '23 03:12 awelormro

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 avatar Dec 08 '23 07:12 lambdalisue

@nionios @awelormro Does #22 solve issue?

lambdalisue avatar Dec 10 '23 16:12 lambdalisue

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

awelormro avatar Dec 20 '23 22:12 awelormro