Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ellisonleao/dotenv.nvim
- Owner: ellisonleao
- License: mit
- Created: 2022-02-16T01:26:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-02T10:05:36.000Z (about 1 month ago)
- Last Synced: 2024-10-03T12:39:39.857Z (about 1 month ago)
- Topics: dotenv, hacktoberfest, lua, neovim, neovim-plugin, neovim-plugins, plugin, vim
- Language: Lua
- Homepage:
- Size: 14.6 KB
- Stars: 38
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-neovim - ellisonleao/dotenv.nvim - Minimalist .env support. (Programming Languages Support / Markdown and LaTeX)
README
dotenv.nvim
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
```