Using the hm option programs.neovim.defaultEditor doesn't work for some reason so I just set the environment variable manually.