Optionally load init.scm and helix.scm from .helix/ #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First, thanks for your work on this fork. I'm pretty excited about using it to do unnatural things to helix 😈
This PR makes it easy to switch in/out of a helix plugin dev environment.
Suppose I'm writing a helix plugin and making a terrible mess in
helix.scm
andinit.scm
, and then I get paged for a work thing. I want to be able to quickly transition out of my mess, handle the page with my normal helix configs, and then transition back into the mess and continue development. I'm playing with the idea of doing this bycd
-ing in/out of the plugin project directory.This PR changes helix so that it will load
helix.scm
andinit.scm
in a way that resembles how it loadslanguages.toml
--that is, it will read files if they both exist in./.helix
. Otherwise, it will consult ~/.config/helix (as it did before). This dependency on the CWD makes it possible to achieve the environment-switching that I'm shooting for.I am a rust novice, and not familiar with developing helix. If there's a better way to do this, I'm all ears.
(Sorry for the duplicate re: #4, I made a branch naming mistake)