weirongxu / coc-explorer

📁 Explorer for coc.nvim
MIT License
1.14k stars 45 forks source link

How do I add custom icons? #453

Closed bitterjug closed 3 years ago

bitterjug commented 3 years ago

I wasn't sure what the format of customIcons configuration key was, so I took a guess, but this is, apparently, wrong:

  "explorer": {
    "icon": {
      "enableNerdfont": true,
      "enableVimDevicons": false,
      "customIcons": {
        "icons": {
          "elm": {
            "code": "",
            "color": "#1293D8"
          }
        },
        "extensions":{
          "elm": "elm"
        }
      }
    },

How should I add the Elm icon?

weirongxu commented 3 years ago

Coc-explorer already supports elm by default, you need to update your Nerdfont font.

bitterjug commented 3 years ago

Thanks for that quick reply! My NerdFont includes the icon. It worked fine in NerdTree, and maybe until recently in coc-explorer too. I just noticed today I don't have icons for Elm. Nor for scss. I've put my config back as it was. Any idea what might have happened? Icons work okay for Js, Html, Svg and even Less:

image

weirongxu commented 3 years ago

image

It seems I can't reproduce your problem. BTW, I just fixed an icon display bug, https://github.com/weirongxu/coc-explorer/releases/tag/v0.18.5

weirongxu commented 3 years ago

I think already fixed this in https://github.com/weirongxu/coc-explorer/releases/tag/v0.18.5