Yazi uses TOML files for configuration. This page explains where configuration files are located, how they’re structured, and how Yazi loads them.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sxyazi/yazi/llms.txt
Use this file to discover all available pages before exploring further.
Configuration Files
Yazi uses the following configuration files:| File | Purpose |
|---|---|
yazi.toml | General configuration (manager, preview, opener, tasks, etc.) |
keymap.toml | Keybinding configuration |
theme.toml | Color scheme and visual customization |
vfs.toml | Virtual filesystem service configuration |
Configuration Directory
Yazi looks for configuration files in the following locations:- Unix-like (Linux, macOS)
- Windows
Default Configuration
Yazi includes default configuration files that are used when user configuration files don’t exist:yazi-default.toml- Default general configurationkeymap-default.toml- Default keybindingstheme-dark.toml- Default dark color schemetheme-light.toml- Default light color schemevfs-default.toml- Default VFS service configuration
Configuration Loading Order
Yazi loads configuration in the following order:- Load defaults - Yazi starts with built-in default configurations
- Merge user config - User configuration files override specific settings
- Validate - Yazi validates the merged configuration
- Apply - The final configuration is applied
You only need to specify the settings you want to override in your user configuration files. All unspecified settings will use the default values.
Creating Configuration Files
To customize Yazi’s configuration:-
Create the configuration directory if it doesn’t exist:
-
Create your configuration file(s):
- Add your custom configuration using TOML syntax
Configuration Structure
yazi.toml Structure
Theyazi.toml file is organized into sections:
keymap.toml Structure
Thekeymap.toml file is organized by UI layer:
theme.toml Structure
Thetheme.toml file defines visual appearance:
Schema Validation
Yazi provides JSON schemas for configuration validation:Version Compatibility
Configuration format may change between versions. Always check the documentation for your specific Yazi version.Troubleshooting
Configuration Not Loading
If your configuration isn’t being applied:- Check the file location matches your OS
- Ensure the filename is correct (e.g.,
yazi.toml, notyazi.conf) - Validate TOML syntax using a linter
- Check Yazi’s error messages for validation errors
Syntax Errors
Common TOML syntax issues:- Missing quotes around strings with special characters
- Incorrect array syntax (use
[]not{}) - Unclosed brackets or quotes
- Invalid table names
Finding Default Values
To see default configuration values:- Check the preset directory in the Yazi repository
- Look at the configuration pages in this documentation
- Run Yazi with default configuration and inspect behavior
Next Steps
Yazi Configuration
Configure the file manager behavior
Keymap Configuration
Customize keybindings
Theme Configuration
Customize colors and appearance
VFS Configuration
Configure virtual filesystem services