weirongxu / coc-explorer

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

[BUG] #509

Closed cpfaff closed 2 years ago

cpfaff commented 2 years ago

Describe the bug

Not sure if this is really a bug. However when changing the icons with the package nvim-web-devicons like so e.g.

require('nvim-web-devicons').setup({
  override = {
    html = {
      icon = "",
      color = colors.orange,
      name = "html",
      },
    js = {
      icon = "",
      color = colors.yellow,
      name = "js",
      },
    py = {
      icon = "",
      color = colors.cyan,
      name = "py",
      },
    };
  default = true;
})

These changes are not reflected in coc-explorer. It uses other icons. Other packages like telecope pick up the changes right away and display the correct iconts.

Result from CocInfo

## versions

vim version: NVIM v0.6.1
node version: v17.3.0
coc.nvim version: 0.0.80-cff38a8dde
coc.nvim directory: /home/user/.config/nvim/plugged/coc.nvim
term: st-256color
platform: linux

## Log of coc.nvim

2022-02-03T09:32:01.670 INFO (pid:145902) [plugin] - coc.nvim initialized with node: v17.3.0 after 730ms
2022-02-03T09:32:02.011 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:02.012 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:02.872 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufWipeout',
  8
]
2022-02-03T09:32:02.874 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufWipeout',
  8
]
2022-02-03T09:32:02.875 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufWipeout',
  9
]
2022-02-03T09:32:02.876 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufWipeout',
  9
]
2022-02-03T09:32:02.880 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufWipeout',
  3
]
2022-02-03T09:32:02.881 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufWipeout',
  3
]
2022-02-03T09:32:02.883 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufWipeout',
  2
]
2022-02-03T09:32:02.884 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufWipeout',
  2
]
2022-02-03T09:32:02.885 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufWipeout',
  7
]
2022-02-03T09:32:02.886 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufWipeout',
  7
]
2022-02-03T09:32:02.887 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufWipeout',
  5
]
2022-02-03T09:32:02.891 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufWipeout',
  5
]
2022-02-03T09:32:02.893 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufWipeout',
  6
]
2022-02-03T09:32:02.894 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufWipeout',
  6
]
2022-02-03T09:32:02.897 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufDelete',
  1
]
2022-02-03T09:32:02.898 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufDelete',
  1
]
2022-02-03T09:32:02.898 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufWipeout',
  1
]
2022-02-03T09:32:02.899 INFO (pid:145902) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufWipeout',
  1
]
2022-02-03T09:32:03.014 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:03.017 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:03.802 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.464 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.503 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.544 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.585 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.624 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.664 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.703 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.743 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.783 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.824 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.865 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.904 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.945 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:04.984 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:05.025 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:05.064 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:05.105 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:05.145 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:05.178 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:05.266 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:05.517 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:05.705 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:06.603 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.264 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.303 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.343 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.383 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.424 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.463 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.503 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.544 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.584 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.623 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.664 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.704 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.744 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.783 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.823 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.863 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:07.992 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:08.180 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:32:08.583 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:33:19.479 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:33:19.516 INFO (pid:145902) [attach] - receive notification: highlight []
2022-02-03T09:33:21.340 INFO (pid:145902) [attach] - receive notification: showInfo []

Steps to reproduce Steps to reproduce the behavior:

  1. change icons to your liking as explained above and ensure you set the option "explorer.icon.enableNerdfont": true,
  2. execute nvim
  3. :CocExplorer ...
  4. See standard icons

Expected behavior

See the new icons like changed

Screenshots

You see the explorer on the left and telescope on the right. You see in the explorer the html icon "<>" and in telescope the correct html logo.

2022-02-03-093552_698x584_scrot

Additional context None

cpfaff commented 2 years ago

my fault. I was missing a config option:

"explorer.icon.source": "nvim-web-devicons",