From c0ed5f823a37fb1b9b2300f53b23263bfc97a108 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 03:35:02 -0300 Subject: edit: Enter, o and O give the new line helix's indent where the file's grammar has an indent query, its indent_for_newline over the file's tree (indent.zig: the reference's containment engine, every capture and predicate the vendored queries use, the hybrid heuristic), else acme's copy as before; and Enter between a pair puts the closer on a line of its own at that indent and the cursor on one a level in, as helix's insert_newline does, in plain text too Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/syntax.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/syntax.zig') diff --git a/src/syntax.zig b/src/syntax.zig index 5fe557ae..0521966d 100644 --- a/src/syntax.zig +++ b/src/syntax.zig @@ -1279,6 +1279,7 @@ fn diffSynAt(styles: []const u8, text: []const u8, needle: []const u8, offset: u test { _ = diff; + _ = @import("indent.zig"); } test "every vendored textobject and indent query compiles against its grammar" { -- cgit v1.3