How to add a nerd-font icon #46
Answered
by
dhruvkb
odebroqueville
asked this question in
Help Q&A
-
I noticed that some document types, e.g. PDF, don't have an icon. I created a file called .pls.yml in my home directory ~ on my Mac containing the following code, but it's not working and I honestly don't understand how to validate my YAML file!
Would be most grateful if someone could help me fix this! |
Beta Was this translation helpful? Give feedback.
Answered by
dhruvkb
Sep 7, 2022
Replies: 1 comment 3 replies
-
Hey @odebroqueville, there are two steps involved in adding an icon for a file type.
Your 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" |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
odebroqueville
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @odebroqueville, there are two steps involved in adding an icon for a file type.
Your
.pls.yml
file should look like this: