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_HOME
should have within it the folder of your project andNVIM_APPNAME
corresponds to the project folder name. Also, theinit.lua
file in the project root is used to make a simple Neovim configuration to test the colorscheme.