lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

custom commits icons

Open sineptic opened this issue 1 year ago • 3 comments

Description

In config documentation no description how to change commit graph icons. My font display those symbols bad and I want to change it.


I think this is bug, because it's expected behavior.

sineptic avatar May 22 '24 09:05 sineptic

Are you perhaps using a version of NerdFont downloaded/patched from a while ago? Nerdfont released a new major version since, which deprecated a number of old glyph points and would cause them to look weird in apps that have adopted the new version, so your options might include (assuming that was the issue):

  1. in your config.yml, modify git.nerdFontsVersion to "2" instead
  2. Download latest version of font or repatch.

tzhouhc avatar May 26 '24 23:05 tzhouhc

  1. I think you want say gui.nerdFontsVersion
  2. It don't change icons in this section.
  3. My font is up to date.

sineptic avatar May 29 '24 17:05 sineptic

Oops, I did indeed! If that wasn't the issue then I've no idea.

tzhouhc avatar May 31 '24 10:05 tzhouhc

i have the same issue

latest nerd fonts symbols only main font is jetbrains mono

issue persists in ghostty and alacritty and also with patched jetbrains

~ > printf '%x' \'⏣
23e3⏎

the code show from the lazygit merge icon doesnt seem to exist in nerd fonts, so maybe we are missing some other font that have proper icons. it would be nice if someone with proper icons run the command below to verify

~ > fc-list ':charset=23e3'
/usr/share/fonts/google-noto/NotoSansMath-Regular.ttf: Noto Sans Math:style=Regular
/usr/share/fonts/google-noto-vf/NotoSansSymbols[wght].ttf: Noto Sans Symbols:style=Regular
/usr/share/fonts/stix-fonts/STIXTwoMath-Regular.otf: STIX,STIX Two Math:style=Regular
/usr/share/fonts/google-noto-vf/NotoSansSymbols[wght].ttf: Noto Sans Symbols
/usr/share/fonts/google-noto-vf/NotoSansSymbols[wght].ttf: Noto Sans Symbols:style=Medium
/usr/share/fonts/google-noto-vf/NotoSansSymbols[wght].ttf: Noto Sans Symbols:style=SemiBold
/usr/share/fonts/google-noto-vf/NotoSansSymbols[wght].ttf: Noto Sans Symbols:style=Bold
/usr/share/fonts/gdouros-symbola/Symbola.ttf: Symbola:style=Regular

Image

d3m1gd avatar Mar 31 '25 06:03 d3m1gd

i have the same issue

Which issue? Your screenshot looks about right to me. Or are you talking about the fact that the merge icon is displaced a few pixels to the right?

stefanhaller avatar Mar 31 '25 07:03 stefanhaller

displacement is certainly not good, but I guess those should have been proper git related icons, if not and they are exactly correct, then the issue op opened is even more relevant, it would awesome to change those

d3m1gd avatar Mar 31 '25 15:03 d3m1gd