direnv integration for Sublime Text 4
This plugin adds support for direnv to Sublime Text 4.
This plugin needs direnv installed to work. Please refer here for installation instructions.
You can install via Sublime Package Control plugin:
- Press
(ctrl|cmd)+shift+p
to view the Command Palette in Sublime Text. - Type the command Package Control: Install Package
- Type the name Direnv and choose it from the list.
This plugin will automatically load a .envrc
file to the environment if you allowed it to.
In order to run a command press (ctrl|cmd)+shift+p
to view the Command Palette. There type:
direnv allow
to allow and load the current .envrcdirenv deny
to deny and unload the current .envrcdirenv clear cache
to clear filesystem cache
Since ST doesn't have an API to delay the loading of other plugins,
when using nix to declare dependencies for your project,
plugins like LSP-rust-analyzer won't be able to find them.
If you encounter this issue, you can try to open your project directory in ST,
open your README
, .envrc
or some other unrelated file and
wait for direnv to load before opening your source code files.