Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ellisonleao/dotenv.nvim

A minimalist .env support for Neovim
https://github.com/ellisonleao/dotenv.nvim

dotenv hacktoberfest lua neovim neovim-plugin neovim-plugins plugin vim

Last synced: 3 days ago
JSON representation

A minimalist .env support for Neovim

Awesome Lists containing this project

README

        



dotenv.nvim




Twitter Follow
Made with Lua

A minimalist .env support for Neovim (WIP)

# Prerequisites

Neovim 0.7.0+

# Installing

Using `packer`

```lua
use { "ellisonleao/dotenv.nvim" }
```

# Basic Usage

```lua
require('dotenv').setup()
```

# Configuration

Additional settings are:

```lua
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
```