mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
rewrite auto-pairs docs (#2384)
This commit is contained in:
parent
25d128b5b3
commit
f59b3b91c8
@ -90,16 +90,18 @@ ### `[editor.file-picker]` Section
|
|||||||
|
|
||||||
### `[editor.auto-pairs]` Section
|
### `[editor.auto-pairs]` Section
|
||||||
|
|
||||||
Enable automatic insertion of pairs to parentheses, brackets, etc. Can be
|
Enables automatic insertion of pairs to parentheses, brackets, etc. Can be a
|
||||||
a simple boolean value, or a specific mapping of pairs of single characters.
|
simple boolean value, or a specific mapping of pairs of single characters.
|
||||||
|
|
||||||
| Key | Description |
|
To disable auto-pairs altogether, set `auto-pairs` to `false`:
|
||||||
| --- | ----------- |
|
|
||||||
| `false` | Completely disable auto pairing, regardless of language-specific settings
|
|
||||||
| `true` | Use the default pairs: <code>(){}[]''""``</code>
|
|
||||||
| Mapping of pairs | e.g. `{ "(" = ")", "{" = "}", ... }`
|
|
||||||
|
|
||||||
Example
|
```toml
|
||||||
|
[editor]
|
||||||
|
auto-pairs = false # defaults to `true`
|
||||||
|
```
|
||||||
|
|
||||||
|
The default pairs are <code>(){}[]''""``</code>, but these can be customized by
|
||||||
|
setting `auto-pairs` to a TOML table:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[editor.auto-pairs]
|
[editor.auto-pairs]
|
||||||
|
Loading…
Reference in New Issue
Block a user