How to change Neovim config directory

Viewed 1745

My current config file is at

C:\Users\User\AppData\Local\nvim

But I set up a new config setup in C:\Users\User\.config\nvim

How can I change it so that the config directory reflects this change? Thanks!

1 Answers

As far as I know, neovim looks for init.vim in $XDG_CONFIG_HOME/nvim directory

(which in windows is at ~/AppData/Local/nvim) so the $XDG_CONFIG_HOME variable is responsible for that.

In my opinion, if all you want to do is change neovim's config specifically a symbolic link will do the job:)

Related