nvim is in
~/AppData/Local/ and I want to drag it out just one directory below
$HOME. How can I set
$XDG_CONFIG_HOME, and can it be done via Neovim?
Setting environment variables is done via the OS or the shell.
On Windows, you can use the GUI
Right click on Computer, Advanced system settings, select Advanced tab and click Environment variables.
or use the shell (cmd.exe):
setx XDG_CONFIG_HOME C:\Users\foo\bar
$XDG_CONFIG_HOMEis generic to all XDG-compliant applications, so don't set it to an Nvim-specific path. If you set
XDG_CONFIG_HOME=C:\Users\foo, then Nvim will put its config in
C:\Users\foo\nvim, and other apps will put their configs in
:help xdgattempts to explain this clearly.