Can't get Neovim plugin coc-explorer working

I have coc-explorer installed via Home Manager, but when trying to use it via :CocCommand explorer I get [coc.nvim] Command: explorer not found. It also doesn’t show up under :CocList extensions. Other plugins installed in the exact same way, such as coc-pyright show up there and are working.

Here’s my config.

  programs.neovim = {
    enable = true;
    extraConfig = ''
      if (has("nvim"))
        "For Neovim 0.1.3 and 0.1.4 < >

      "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < >
      "Based on Vim patch 7.4.1770 (`guicolors` option) < >
      " < >
      if (has("termguicolors"))
        set termguicolors

      filetype plugin indent on
      syntax on
      set tabstop=4 shiftwidth=4 expandtab
      set clipboard+=unnamedplus
    extraPackages = with pkgs;
      [ (python3.withPackages (ps: with ps; [ black isort pylint ])) ];
    plugins = with pkgs.vimPlugins; [
        plugin = vim-autoformat;
        config = ''
          let g:formatters_javascript = ['prettier']
          let g:formatters_json = ['prettier']
          let g:formatters_python = ['black']
          let g:formatters_typescript = ['prettier']
          let g:formatters_yaml = ['prettier']
        plugin = vim-one;
        config = ''
          set background=dark
          colorscheme one
    viAlias = true;
    vimAlias = true;
    vimdiffAlias = true;
    withNodeJs = true;
    withPython3 = true;

Any ideas on how to troubleshoot this? Is coc-explorer working for anyone else?

Forgot to add, this is what :CocInfo gives me:

## versions

vim version: NVIM v0.4.4
node version: v14.15.5
coc.nvim version: 0.0.80-bcc57aa73c
coc.nvim directory: /nix/store/ljyg40hjpszlhr92ri2a3hs79ghs1321-vimplugin-coc-nvim-2021-02-22/share/vim-plugins/coc-nvim
term: screen-256color
platform: darwin

## Log of coc.nvim

2021-02-23T12:01:16.892 INFO (pid:10355) [coc-git] - Looking for git in: git
2021-02-23T12:01:16.925 INFO (pid:10355) [plugin] - coc.nvim 0.0.80-bcc57aa73c initialized with node: v14.15.5 after 267ms
2021-02-23T12:01:21.076 INFO (pid:10355) [attach] - receive notification: showInfo []

For what it’s worth: I really love coc-explorer and can‘t live without it. Installing it declaratively via :CocInstall was sadly so easy that I never bothered to report or fix the issue that you are encountering …

Yes I’m really looking forward to trying it! I’ve been patient and am trying to do it the “right” way so haven’t even used it yet.

Are you saying that you also tried it in your plugins list in your Nix config and it didn’t work so you ended up with the ad-hoc install method?

Sadly, yes. Also discourse doesn‘t let me answer with less than 20 letters.^^

Was that via home manager (like in my example) or just overriding the package?

Hm, I think the second. But I don‘t think it matters.

The reason it doesn’t work when installed through Nix is because it’s not packaged as a node application. I haven’t bothered upstreaming this, but this works (requires regenerating node packages though):

See also vimPlugins: fix coc-markdownlint and coc-vimlsp by malob · Pull Request #105174 · NixOS/nixpkgs · GitHub which fixed this for some other coc plugins

Above link expired, but coc-explorer was fixed upstream in vimPlugins.coc-explorer: convert to nodePackages by kwbauson · Pull Request #119336 · NixOS/nixpkgs · GitHub