I use direnv along with an .envrc file to set up the development environment effortlessly by exporting XDG_CONFIG_HOME and NVIM_APPNAME variables. Simply entering the directory is sufficient to start coding.
.envrc example:
export XDG_CONFIG_HOME=/home/filipe/projects
export NVIM_APPNAME=nvim-colorscheme-template- Note:
XDG_CONFIG_HOMEshould have within it the folder of your project andNVIM_APPNAMEcorresponds to the project folder name. Also, theinit.luafile in the project root is used to make a simple Neovim configuration to test the colorscheme.