April 20, 2023
Neovim Config Switcher
Neovim version 0.9.0 has been released and one of it’s new feature is the introduction of the environmental variable $NVIM_APPNAME.
Setting $NVIM_APPNAME makes Neovim look for its configuration directory in $XDG_CONFIG_HOME/$NVIM_APPNAME instead of $XDG_CONFIG_HOME/nvim. 1
Here’s an example to give you a better idea.
We have the NvChad’s config.
$ ls .config/NvChad init.lua lazy-lock.json LICENSE lua To make Neovim use this particular configuration file, we set the env variable $NVIM_APPNAME and open nvim.
Read more