Skip to content

Commit a53a008

Browse files
fix: configuration book entry after rebase
1 parent 6ad3fb3 commit a53a008

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

book/src/configuration.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,12 @@ select = "underline"
2525
hidden = false
2626
```
2727

28-
<<<<<<< HEAD
2928
You may also specify a file to use for configuration with the `-c` or
30-
`--config` CLI argument: `hx -c path/to/custom-config.toml`.
31-
=======
32-
Editor configuration may also be overridden local to a project by creating
33-
a `config.toml` file under a `.helix` directory. Its settings will be merged
34-
with the configuration directory `config.toml` and the built-in configuration.
29+
`--config` CLI argument: `hx -c path/to/custom-config.toml`.
3530

36-
>>>>>>> a4a8e122 (docs: add section about local config, written like the one for languages)
31+
Finally, you can have a `config.toml` local to a project by it under a `.helix` directory in your repository.
32+
Its settings will be merged with the configuration directory `config.toml` and the built-in configuration,
33+
if you have enabled the feature under `[editor.security]` in your global configuration.
3734

3835
## Editor
3936

@@ -236,3 +233,13 @@ Example:
236233
render = true
237234
character = ""
238235
```
236+
237+
### `[editor.security]` Section
238+
239+
Opt in to features that may put you at risk.
240+
It is possible to write malicious TOML files, so we suggest you keep the `confirm_*` options to their default value of `true`.
241+
242+
| Key | Description | Default |
243+
| --- | --- | --- |
244+
| `load_local_config` | Load a `config.yaml` from `$PWD/.helix` that will merge with your global configuration. | `false` |
245+
| `confirm_local_config` | Prompt the user at launch in order to accept the loading of a found local `$PWD/.helix` | `true` |

0 commit comments

Comments
 (0)