Configuration
Configuration File
leaf reads configuration from ~/.config/leaf/config.toml (Linux/macOS) or %APPDATA%\leaf\config.toml (Windows).
Open it with:
leaf --config
Options
# Default theme: arctic, forest, ocean, solarized-dark
theme = "ocean"
# Default editor for Ctrl+E
editor = "vim"
# Enable watch mode by default
watch = false
All settings are optional. CLI flags always override config file values.
Precedence
- Command-line flags (highest priority)
- Config file (
config.toml) - Environment variables (
$EDITOR,$VISUAL) - Built-in defaults