Giter VIP home page Giter VIP logo

Comments (11)

soerenmartius avatar soerenmartius commented on August 15, 2024 2

That worked! Thanks!

from lvim.

soerenmartius avatar soerenmartius commented on August 15, 2024 1

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?

from lvim.

abzcoding avatar abzcoding commented on August 15, 2024

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

    lvim/config.lua

    Lines 47 to 49 in 40c7b65

    local user = os.getenv "USER"
    if user and user == "abz" then
    lvim.builtin.nvim_web_devicons = { active = false }

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

from lvim.

abzcoding avatar abzcoding commented on August 15, 2024

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

from lvim.

abzcoding avatar abzcoding commented on August 15, 2024

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

from lvim.

abzcoding avatar abzcoding commented on August 15, 2024

same for the fira-code
Screen Shot 2022-01-11 at 6 00 16 PM

from lvim.

abzcoding avatar abzcoding commented on August 15, 2024

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

from lvim.

abzcoding avatar abzcoding commented on August 15, 2024

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

from lvim.

soerenmartius avatar soerenmartius commented on August 15, 2024
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 :/

from lvim.

abzcoding avatar abzcoding commented on August 15, 2024

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

from lvim.

abzcoding avatar abzcoding commented on August 15, 2024

this might be helpful as well

from lvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.