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 < https://github.com/neovim/neovim/pull/2198 >
        let $NVIM_TUI_ENABLE_TRUE_COLOR=1
      endif

      "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
      "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
      " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
      if (has("termguicolors"))
        set termguicolors
      endif

      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; [
      vim-nix
      coc-nvim
      coc-css
      coc-explorer
      coc-git
      coc-go
      coc-html
      coc-json
      coc-prettier
      coc-pyright
      coc-rust-analyzer
      coc-tsserver
      coc-yaml
      {
        plugin = vim-autoformat;
        # https://github.com/Chiel92/vim-autoformat/blob/2a6f931987c1cc5e5bc0c4c44f21ac9bd4c72f3b/plugin/defaults.vim
        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
        '';
      }
      vim-lastplace
    ];
    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): https://github.com/infinisil/nixpkgs/commit/e3d5e5355c8c37fd14e64ba0ac42fd099bee90c4

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