Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/misuzu/direnv-subl
direnv integration for Sublime Text 4
https://github.com/misuzu/direnv-subl
direnv sublime-text sublime-text-4
Last synced: 1 day ago
JSON representation
direnv integration for Sublime Text 4
- Host: GitHub
- URL: https://github.com/misuzu/direnv-subl
- Owner: misuzu
- License: mit
- Created: 2021-11-18T19:05:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T08:01:00.000Z (9 months ago)
- Last Synced: 2024-04-24T14:13:16.137Z (9 months ago)
- Topics: direnv, sublime-text, sublime-text-4
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [direnv](https://direnv.net) integration for Sublime Text 4
This plugin adds support for direnv to Sublime Text 4.
## Prerequisites
This plugin needs direnv installed to work. Please refer [here](https://direnv.net/docs/installation.html) for installation instructions.
## Installation
You can install via [Sublime Package Control plugin](https://packagecontrol.io/installation):
* 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.## Usage
This plugin will automatically load a `.envrc` file to the environment if you allowed it to.
## Commands
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 .envrc
* `direnv deny` to deny and unload the current .envrc
* `direnv clear cache` to clear filesystem cache## Limitations
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.