2021-04-05 10:18:43 +04:00
# Configuration
2021-06-06 16:45:59 +04:00
2021-08-16 16:19:05 +04:00
To override global configuration parameters, create a `config.toml` file located in your config directory:
2023-03-06 13:27:17 +04:00
- Linux and Mac: `~/.config/helix/config.toml`
- Windows: `%AppData%\helix\config.toml`
2021-06-19 15:19:31 +04:00
2023-03-06 13:27:17 +04:00
> 💡 You can easily open the config file by typing `:config-open` within Helix normal mode.
2022-03-09 22:34:12 +04:00
2021-11-24 10:47:41 +04:00
Example config:
```toml
theme = "onedark"
[editor]
line-number = "relative"
mouse = false
[editor.cursor-shape]
2021-11-29 09:39:04 +04:00
insert = "bar"
normal = "block"
select = "underline"
2021-11-24 10:47:41 +04:00
[editor.file-picker]
hidden = false
```
2023-03-06 13:27:17 +04: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 02:08:06 +04: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 19:08:32 +04:00
2023-01-31 03:31:21 +04: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.