diff options
Diffstat (limited to 'core/bindings.zig')
| -rw-r--r-- | core/bindings.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/bindings.zig b/core/bindings.zig index 6128e311..e59f0f4a 100644 --- a/core/bindings.zig +++ b/core/bindings.zig @@ -149,7 +149,8 @@ fn leaderLevel(comptime prefix: []const u8) []const Node { const path = config.leader_path.get(b) orelse continue; if (std.mem.eql(u8, path, here)) break .{ .key = k, .label = @tagName(b), .leaf = .{ .builtin = b }, .lsp = lsp }; } else for (config.leader_args, 0..) |la, a| { - if (std.mem.eql(u8, la.path, here)) break .{ .key = k, .label = la.arg, .leaf = .{ .arg = a }, .lsp = lsp }; + // Root's twins say their scope, as their heads do: `Find root`. + if (std.mem.eql(u8, la.path, here)) break .{ .key = k, .label = if (la.cmd == .Root) la.arg ++ " root" else la.arg, .leaf = .{ .arg = a }, .lsp = lsp }; } else .{ .key = k, .label = groupLabel(here), .children = leaderLevel(here), .group = groupIndex(here) }; } return sorted(&nodes); |
