Home-Manager neovim config netrw doesn't load

I am loading neovim via home-manager, and my config is roughly:

programs.neovim = {
  enable - true;
  withPython = false;
  viAlias = true;
  vimAliad = true;
  vimdiffAlias = true;
  plugins = with pkgs.vimPlugins; [ ...bunch of plugisn... ];
  extraConfig = ''
    "lots of vim config
  '';
};

You can find the full config at: https://github.com/dmayle/dotfiles/blob/99db52924742f923a442f9cf026c2f65cb5f2646/home-manager/home.nix

In any case, I’ve checked my runtimepath, and it includes the following in the list:
“/nix/store/mq7b9mrrdj50rxxx4lpi26ldd6gzagq4-neovim-unwrapped-master/share/nvim/runtime”

Inside of the plugins folder in that directory is netrwPlugin.vim, however I can’t get netrw to actually work. I’ve tried loading a spell file, and I get the following error:

Error detected while processing function spellfile#LoadFile[67]..spellfile#Nread:
line   13:
E117: Unknown function: netrw#NetRead
Could not find it, trying fr.ascii.spl...
Error detected while processing function spellfile#LoadFile[92]..spellfile#Nread:
line   13:
E117: Unknown function: netrw#NetRead
Download failed
1 Like

I have got this issue too.

you probably have a setting that disables netrw, what if you remove the content of extraConfig ?