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

  1. Command-line flags (highest priority)
  2. Config file (config.toml)
  3. Environment variables ($EDITOR, $VISUAL)
  4. Built-in defaults