diff options
| author | sndb <ckyg@proton.me> | 2025-03-04 22:24:03 +0300 |
|---|---|---|
| committer | sndb <ckyg@proton.me> | 2025-03-04 22:24:03 +0300 |
| commit | fb70621703b6f480a496e2bf109090a3894e376e (patch) | |
| tree | 7792a15d573396d0ed9608a339ca05f29f26dc34 /misc | |
| parent | a0694cb331571e2cb31512af7da75756ef984ec2 (diff) | |
Put spaces around braces of single line blocks
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/odinfmt.schema.json | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/misc/odinfmt.schema.json b/misc/odinfmt.schema.json index 7984da9..6c82dde 100644 --- a/misc/odinfmt.schema.json +++ b/misc/odinfmt.schema.json @@ -56,17 +56,20 @@ "default": false, "description": "When statement in the clause contains one simple statement, it will inline the case and statement in one line" }, - "spaces_around_colons": { "type": "boolean", "default": false, "description": "Put a space on both sides of a single colon during variable/field declaration, such as `foo : bar`" - }, - + }, "sort_imports": { "type": "boolean", "default": true, "description": "Sorts imports alphabetically" + }, + "space_single_line_blocks": { + "type": "boolean", + "default": false, + "description": "Put spaces around braces of single-line blocks: `{return 0}` => `{ return 0 }`" } }, "required": [] |