Hi,
Please see my snapcraft.yml for alacritty here. When using snapcraft-desktop-helpers, it sets XDG dirs to dirs inside the snap. So if I start nvim, it'll search for its config inside the XDG dirs created for alacritty.
I think the XDG dirs should be set to real home user when the snap is classic.