Search code examples
neovim

How to change Neovim config directory


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!


Solution

  • In neovim 0.9.0 it was included support for environment variable NVIM_APPNAME that allows configuring the config file location

    For instance, by setting NVIM_APPNAME=nvim-v2, config files will be in C:\Users\User\AppData\Local\nvim-v2

    Reference: https://github.com/neovim/neovim/pull/22128