2021-04-05 14:18:43 +08:00
# Configuration
2021-06-06 20:45:59 +08:00
2021-08-16 20:19:05 +08:00
To override global configuration parameters, create a `config.toml` file located in your config directory:
2023-03-06 17:27:17 +08:00
- Linux and Mac: `~/.config/helix/config.toml`
- Windows: `%AppData%\helix\config.toml`
2021-06-19 19:19:31 +08:00
2023-03-06 17:27:17 +08:00
> 💡 You can easily open the config file by typing `:config-open` within Helix normal mode.
2022-03-10 02:34:12 +08:00
2021-11-24 14:47:41 +08:00
Example config:
```toml
theme = "onedark"
[editor]
line-number = "relative"
mouse = false
[editor.cursor-shape]
2021-11-29 13:39:04 +08:00
insert = "bar"
normal = "block"
select = "underline"
2021-11-24 14:47:41 +08:00
[editor.file-picker]
hidden = false
```
2023-03-06 17:27:17 +08:00
You can use a custom configuration file by specifying it with the `-c` or
`--config` command line argument, for example `hx -c path/to/custom-config.toml` .
2024-11-21 06:08:06 +08:00
You can reload the config file by issuing the `:config-reload` command. Alternatively, on Unix operating systems, you can reload it by sending the USR1
signal to the Helix process, such as by using the command `pkill -USR1 hx` .
2022-10-03 23:08:32 +08:00
2023-01-31 07:31:21 +08:00
Finally, you can have a `config.toml` local to a project by putting it under a `.helix` directory in your repository.
Its settings will be merged with the configuration directory `config.toml` and the built-in configuration.