Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

auto-direnv.nvim

auto-direnv.nvim is a simple plugin to automatically manage your environment using direnv without ever leaving Neovim.

⭐ Features

  • Automatically detects .envrc files and applies the environment variables right inside Neovim.
  • Uses direnv directly, so respects you existing rules.
  • Supports session managers. See here for more details.

⚡️ Requirements

  • Neovim 0.9.0 or higher
  • direnv executable installed and available in your system $PATH

📦 Installation

Install using your preferred plugin manager.

vim.pack

vim.pack.add({
    "https://github.com/seudonym/auto-direnv.nvim"
})

Make sure to call require('auto-direnv').setup() somewhere.

⚙️ Configuration

Expand to see the list of options below

Default Options ```lua --- @class AutoDirenvConfig local default_config = { silent = false, -- set to true to disable notifications on trigger } ```

💾 Sessions support

Since it relies on VimEnter and DirChanged events to update vim.env, it should work with session managers as well. Though, only the following ones have been tested:

Credits

About

A simple plugin to work with direnv on Neovim

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages