I was refactoring my Neovim config but I do not want to overwrite the current config yet. So I’m looking for the solution to load config from a custom directory which I found here.
- Create a new directory for the new Neovim config, for example,
The config structure must be like this,
init.lua file under
nvim directory, similar to
- Run neovim by set
XDG_CONFIG_HOME pointing to the new config location:
- Done, now Neovim new config loaded from