summaryrefslogtreecommitdiff
path: root/book/src/configuration.md
diff options
context:
space:
mode:
authorDaniel Ebert2023-09-19 14:14:23 +0000
committerBlaž Hrastnik2023-12-15 06:59:54 +0000
commita5acfdbf104db82310b71da988ef8a5df43ffd49 (patch)
treeff8ba19178dae461c6c513ea6a365f6c3218112f /book/src/configuration.md
parent938a710904ae6d328d4008626d98acb9e907813a (diff)
Add documentation for new indent computation
Diffstat (limited to 'book/src/configuration.md')
-rw-r--r--book/src/configuration.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/book/src/configuration.md b/book/src/configuration.md
index f70ce547..bbec40f2 100644
--- a/book/src/configuration.md
+++ b/book/src/configuration.md
@@ -65,6 +65,7 @@ Its settings will be merged with the configuration directory `config.toml` and t
| `workspace-lsp-roots` | Directories relative to the workspace root that are treated as LSP roots. Should only be set in `.helix/config.toml` | `[]` |
| `default-line-ending` | The line ending to use for new documents. Can be `native`, `lf`, `crlf`, `ff`, `cr` or `nel`. `native` uses the platform's native line ending (`crlf` on Windows, otherwise `lf`). | `native` |
| `insert-final-newline` | Whether to automatically insert a trailing line-ending on write if missing | `true` |
+| `indent-heuristic` | How the indentation for a newly inserted line is computed: `simple` just copies the indentation level from the previous line, `tree-sitter` computes the indentation based on the syntax tree and `hybrid` combines both approaches | `hybrid`
### `[editor.statusline]` Section