Skip to content

How to add a nerd-font icon #46

Discussion options

You must be logged in to vote

Hey @odebroqueville, there are two steps involved in adding an icon for a file type.

  • icon mapping (the step that you have done)
  • spec definition (the step that's missing)

Your .pls.yml file should look like this:

nerd_icons:
  pdf: "\uf724" # nf-mdi-file_pdf

node_specs: # teaches `pls` how to map files to icons and colors
  - extension: pdf
    icon: pdf
    color: "#ec1c24"

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dhruvkb
Comment options

@odebroqueville
Comment options

@dhruvkb
Comment options

Answer selected by odebroqueville
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants