A minimalist .env support for Neovim (WIP)
Neovim 0.7.0+
Using packer
use { "ellisonleao/dotenv.nvim" }
require('dotenv').setup()
Additional settings are:
require('dotenv').setup({
enable_on_load = true, -- will load your .env file upon loading a buffer
verbose = false, -- show error notification if .env file is not found and if .env is loaded
})
If you prefer to not load the .env file upon opening a file, you can use the user command:
:Dotenv
Optionally use a file as param, if the file is not in the current directory
:Dotenv PATH
:DotenvGet ENV