diff options
author | Daniel Ebert | 2023-09-19 13:31:38 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-12-15 06:59:54 +0000 |
commit | 938a710904ae6d328d4008626d98acb9e907813a (patch) | |
tree | df6a641d82d0c82b61ecc7ffe68011d0dca24453 /helix-term | |
parent | 559bfc1f5ef1bd43fd94325c0363058e32c76df4 (diff) |
Make the indent heuristic configurable
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index e557977a..1b8f9e1f 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -3053,6 +3053,7 @@ fn insert_with_indent(cx: &mut Context, cursor_fallback: IndentFallbackPos) { let indent = indent::indent_for_newline( language_config, syntax, + &doc.config.load().indent_heuristic, &doc.indent_style, tab_width, text, @@ -3181,6 +3182,7 @@ fn open(cx: &mut Context, open: Open) { let indent = indent::indent_for_newline( doc.language_config(), doc.syntax(), + &doc.config.load().indent_heuristic, &doc.indent_style, doc.tab_width(), text, @@ -3720,6 +3722,7 @@ pub mod insert { let indent = indent::indent_for_newline( doc.language_config(), doc.syntax(), + &doc.config.load().indent_heuristic, &doc.indent_style, doc.tab_width(), text, |