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:
|
|
|
|
|
|
|
|
* Linux and Mac: `~/.config/helix/config.toml`
|
|
|
|
* Windows: `%AppData%\helix\config.toml`
|
2021-06-19 15:19:31 +04:00
|
|
|
|
2021-09-07 08:00:52 +04:00
|
|
|
## Editor
|
|
|
|
|
|
|
|
`[editor]` section of the config.
|
|
|
|
|
|
|
|
| Key | Description | Default |
|
|
|
|
|--|--|---------|
|
|
|
|
| `scrolloff` | Number of lines of padding around the edge of the screen when scrolling. | `3` |
|
|
|
|
| `mouse` | Enable mouse mode. | `true` |
|
|
|
|
| `middle-click-paste` | Middle click paste support. | `true` |
|
|
|
|
| `scroll-lines` | Number of lines to scroll per scroll wheel step. | `3` |
|
|
|
|
| `shell` | Shell to use when running external commands. | Unix: `["sh", "-c"]`<br/>Windows: `["cmd", "/C"]` |
|
|
|
|
| `line-number` | Line number display (`absolute`, `relative`) | `absolute` |
|
2021-09-20 08:45:07 +04:00
|
|
|
| `smart-case` | Enable smart case regex searching (case insensitive unless pattern contains upper case characters) | `true` |
|
2021-09-24 05:28:44 +04:00
|
|
|
| `auto-pairs` | Enable automatic insertion of pairs to parenthese, brackets, etc. | `true` |
|
2021-10-16 17:57:41 +04:00
|
|
|
| `auto-completion` | Enable automatic pop up of auto-completion. | `true` |
|
2021-10-10 07:32:06 +04:00
|
|
|
| `idle-timeout` | Time in milliseconds since last keypress before idle timers trigger. Used for autocompletion, set to 0 for instant. | `400` |
|
2021-09-07 08:00:52 +04:00
|
|
|
|
2021-06-18 07:57:36 +04:00
|
|
|
## LSP
|
|
|
|
|
2021-06-20 23:31:03 +04:00
|
|
|
To display all language server messages in the status line add the following to your `config.toml`:
|
2021-06-18 07:57:36 +04:00
|
|
|
```toml
|
2021-06-20 23:31:03 +04:00
|
|
|
[lsp]
|
|
|
|
display-messages = true
|
2021-06-18 07:57:36 +04:00
|
|
|
```
|