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: about 2 months 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: 2023-01-06T14:59:20.000Z (over 1 year ago)
- Last Synced: 2024-01-24T08:52:51.463Z (4 months ago)
- Topics: dotenv, hacktoberfest, lua, neovim, neovim-plugin, neovim-plugins, plugin, vim
- Language: Lua
- Homepage:
- Size: 13.7 KB
- Stars: 25
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-neovim - ellisonleao/dotenv.nvim - Minimalist .env support. (Programming Languages Support / Markdown and LaTeX)
- awesome-stars - ellisonleao/dotenv.nvim - A minimalist .env support for Neovim (Lua)
- awesome-neovim - ellisonleao/dotenv.nvim - Minimalist .env support. (Programming Languages Support / Markdown and LaTeX)
- 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
```