Awesome
<div align="center"> <h1> <img src="https://i.postimg.cc/HkJsD67j/dotenv.png" width="80px"><br/>dotenv.nvim</h1> </div> <p align="center"> <a href="https://twitter.com/intent/user?screen_name=ellisonleao" target="_blank"><img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/ellisonleao?style=for-the-badge" style="vertical-align:center" ></a> <a href="#"><img alt="Made with Lua" src="https://img.shields.io/badge/Made%20with%20Lua-blueviolet.svg?style=for-the-badge&logo=lua" style="vertical-align:center" /></a> </p>A minimalist .env support for Neovim (WIP)
Prerequisites
Neovim 0.7.0+
Installing
Using packer
use { "ellisonleao/dotenv.nvim" }
Basic Usage
require('dotenv').setup()
Configuration
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
})
Usage
Loading .env
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
Inspecting an env (must load env first)
:DotenvGet ENV