Categories
Nvim

How I fixed Nvim icons

The CSS icons wasn’t showing in neo-tree so does the storybook icon. It was annoying to click to .stories.ts file mistakenly instead of .component.ts file.

Neo-tree or entire nevoid space uses nvim-web-devicons which expect patched Nerd Font.

Turns out I was using Liga SFMono Nerd Font

  1. It isn’t officially patched, it’s community patched version
  2. It has ligatures but not completely icon set
  3. it predated Nerd fonts v2.3

Instead I chose JetBrainsMono Nerd Font

It just had to specify it to in the alacritty config at .config/alacritty/.alacritty.toml

    [font.normal]
family = "JetBrainsMono Nerd Font"
style = "Regular"

[font.bold]
family = "JetBrainsMono Nerd Font"
style = "Bold"

[font.italic]
family = "JetBrainsMono Nerd Font"
style = "Italic"

[font.bold_italic]
family = "JetBrainsMono Nerd Font"
style = "Bold Italic"

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.