Install Helix from source on macOS

brew install rust
mkdir ~/src
cd src
git clone https://github.com/helix-editor/helix
cd helix
cargo install --path helix-term --locked

Put this in your .zshrc (or whatever) and add $HOME/.cargo/bin to your PATH while you’re in there.

export HELIX_RUNTIME=~/src/helix/runtime

Uninstall Homebrew-installed Helix if you need to.

brew uninstall helix

Now you can do stuff like this:

[theme]
dark = "monokai_pro_spectrum"
light = "flatwhite"

Note: this doesn’t currently work (reliably) in Ghostty, so I’m using kitty for the time being. It’s worth it to me. Love me some dark/light mode switching on the fly.

Sources

helix/book/src/themes.md at 088eb179d11c325fca4ae7e385366a8600402c3d · helix-editor/helix · GitHub

helix/book/src/building-from-source.md at 088eb179d11c325fca4ae7e385366a8600402c3d · helix-editor/helix · GitHub