auto-direnv.nvim is a simple plugin to automatically manage your environment using direnv without ever leaving Neovim.
- 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.
- Neovim
0.9.0or higher - direnv executable installed and available in your system
$PATH
Install using your preferred plugin manager.
vim.pack.add({
"https://github.com/seudonym/auto-direnv.nvim"
})Make sure to call require('auto-direnv').setup() somewhere.
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 } ```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: