abzcoding / lvim

🧑‍🚀 Bloated LunarVim 🚀
MIT License
475 stars 65 forks source link

Icons missing #16

Closed soerenmartius closed 2 years ago

soerenmartius commented 2 years ago

Hey @abzcoding

It seems that in my setup some icons are missing. The link to recommended fonts in the README.md ends up in a nirvana :) Could you help me to figure out what I am missing here? I've installed nerdfonts and firacode already.

Screenshot 2022-01-11 at 10 13 14
abzcoding commented 2 years ago

sure thing :) there are two sets of icons

  1. in the normal lunarvim, you can use any of the Nerd Fonts that you like. Bear in mind that you need to configure your terminal to use those fonts as well

  2. in my own setup, I'm using a fork https://github.com/abzcoding/lvim/blob/40c7b65cde011b9b98f6627cec32fdcdca68efea/config.lua#L47-L49

and you can check my terminal configuration to see how I'm setting them up

abzcoding commented 2 years ago

btw in readme you need to expand the Other Stuff part and then the link works

Screen Shot 2022-01-11 at 5 46 30 PM

edit: now it should be easier to find

soerenmartius commented 2 years ago

Hey @abzcoding , thanks for your reply. I've installed the missing fonts with:

brew tap homebrew/cask-fonts
brew search nerd-font
brew install --cask font-fira-code
brew install --cask font-victor-mono-nerd-font
brew install --cask font-iosevka
brew install --cask font-hack-nerd-font

(see the corrected line for installing the iosevka) font but still I am not seeing any icons :/ any idea?

abzcoding commented 2 years ago

if you want to use iosevka, you need the nerd font variant

Screen Shot 2022-01-11 at 5 58 59 PM

basically only nerd font variants contain the icons/glyphs

abzcoding commented 2 years ago

same for the fira-code

Screen Shot 2022-01-11 at 6 00 16 PM
abzcoding commented 2 years ago

also make sure that you've set the correct font on your terminal emulator for example in alacritty ( inside ~/.config/alacritty/alacritty.yml )

font:
  normal:
    family: "FiraCode Nerd Font"
    style: Retina
  size: 13
  offset:
    x: 0
    y: 8
  ligatures: true

or in kitty( ~/.config/kitty/kitty.conf )

font_family      FiraCode Nerd Font Retina
font_size 13.0
adjust_line_height +5
symbol_map U+e900-U+e954 mini-file-icons # only if you want to use the mini-file-icons font
abzcoding commented 2 years ago

you can also just download and install the fonts directly, for example FiraCode Nerd Font

soerenmartius commented 2 years ago
font:
  normal:
    family: "FiraCode Nerd Font"
    style: Retina
  size: 13
  offset:
    x: 0
    y: 8
  ligatures: true

Thank you! Not sure if I understood everything correctly. After installing the font variants and using the above-mentioned config (which loads the font in alacritty correctly) the icons still won't show up :/

abzcoding commented 2 years ago

Thank you! Not sure if I understood everything correctly. After installing the font variants and using the above-mentioned config (which loads the font in alacritty correctly) the icons still won't show up :/

you can't use the mini-file-icons in alacritty -> so please remove this line from your config and do a :PackerSync

  lvim.builtin.nvim_web_devicons = { active = false }

also, here is my full alacritty config, it might be helpful

font:
  normal:
    family: "FiraCode Nerd Font"
    style: Retina
  bold:
    family: "FiraCode Nerd Font"
    style: Retina
  italic:
    family: "Hack Nerd Font"
    style: Italic
  bold_italic:
    family: "Hack Nerd Font"
    style: Italic
  size: 13
  offset:
    x: 0
    y: 8

  ligatures: true
  glyph_offset:
    x: 0
    y: 0

  use_thin_strokes: true

other than that, i'd suggest doing a :LvimCacheReset as well

abzcoding commented 2 years ago

this might be helpful as well

soerenmartius commented 2 years ago

That worked! Thanks!