Skip to content

Latest commit

 

History

History
42 lines (37 loc) · 1 KB

README.md

File metadata and controls

42 lines (37 loc) · 1 KB

environment.nvim

A Neovim plugin for managing environment variables with project-specific and persistence.

Features

  • 🛠️ Declare persistence environment variables during setup
  • 🗂️ Project-specific overrides stored in .idea/.nvim_env
  • 🔄 Automatic loading of variables on Neovim startup
  • 📂 Auto-reload when changing project directories
  • 💻 Simple commands for variable management

Installation

Using Lazy.nvim:

{
  "github.com/Alexandersfg4/environment.nvim",
  config = function()
    require('environment').setup({
      variables = {
        -- Your default variables here
        API_KEY = "default_value",
        ENV = "development"
      }
    })
  end
}

Commands

:EnvSet KEY=value

Redeclare a project-specific environment variable

:EnvSet API_KEY=production_123456

:EnvShow

Display all configured environment variables with their current values

API_KEY=production_123456
ENVIRONMENT=development
PORT=3000