--config flag. This has the highest precedence and overrides all other configuration sources (YAML files, git config, defaults).
Syntax
Multiple Overrides
You can specify multiple--config flags in a single command:
Supported Keys
All configuration keys use thelw. prefix:
lw.theme- UI theme namelw.worktree_dir- Worktree root directorylw.sort_mode- Sort mode (path/active/switched)lw.auto_refresh- Auto-refresh enabled (true/false)lw.disable_pr- Disable PR/MR fetching (true/false)lw.search_auto_select- Search auto-select (true/false)lw.fuzzy_finder_input- Fuzzy finder suggestions (true/false)lw.icon_set- Icon set (nerd-font-v3/text)lw.palette_mru- Command palette MRU (true/false)lw.palette_mru_limit- MRU limit (integer)lw.git_pager- Git pager commandlw.git_pager_args- Git pager arguments (comma-separated)lw.git_pager_interactive- Interactive pager (true/false)lw.git_pager_command_mode- Command mode pager (true/false)lw.pager- Pager commandlw.editor- Editor commandlw.max_untracked_diffs- Max untracked diffs (integer)lw.max_diff_chars- Max diff characters (integer)lw.refresh_interval_seconds- Refresh interval (integer)lw.trust_mode- Trust mode (tofu/never/always)lw.merge_method- Merge method (rebase/merge)lw.branch_name_script- Branch name script pathlw.worktree_note_script- Worktree note script pathlw.worktree_notes_path- Worktree notes pathlw.issue_branch_name_template- Issue branch templatelw.pr_branch_name_template- PR branch templatelw.session_prefix- Session prefixlw.init_commands- Init commands (comma-separated)lw.terminate_commands- Terminate commands (comma-separated)
Examples
Single Override
Multiple Overrides
With Subcommands
Combining with Global Flags
Precedence Order
Configuration values are loaded in this order (highest to lowest):- CLI overrides (
--configflag) - highest precedence - Git local configuration (
git config --local) - Git global configuration (
git config --global) - YAML configuration file
- Built-in defaults
--config flag always wins, overriding all other sources.