mod(node2buffer): adjust colors for blocks
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 30s

This commit is contained in:
2024-10-19 16:51:11 +02:00
parent 4b3ca918b5
commit b91918e2e6

View File

@@ -30,6 +30,7 @@ pub fn toBuffer(
style.fg = .{ .index = 2 };
},
.block => {
style.fg = .{ .index = 252 };
style.dim = true;
next_start = node.token.start;
},
@@ -169,30 +170,30 @@ pub fn toBuffer(
for (1..rows + 1) |r| {
try array.append(.{
.char = .{ .grapheme = " " },
.style = .{ .fg = .{ .index = 0 } },
.style = style,
});
try array.append(.{
.char = .{ .grapheme = " " },
.style = .{ .fg = .{ .index = 0 } },
.style = style,
});
for (1..pad + 1) |i| {
const digit = vaxis.widgets.LineNumbers.extractDigit(r, pad - i);
try array.append(.{
.char = .{ .grapheme = digits[digit .. digit + 1] },
.style = .{ .fg = .{ .index = 0 } },
.style = style,
});
}
try array.append(.{
.char = .{ .grapheme = " " },
.style = .{ .fg = .{ .index = 0 } },
.style = style,
});
try array.append(.{
.char = .{ .grapheme = "" },
.style = .{ .fg = .{ .index = 0 } },
.style = style,
});
try array.append(.{
.char = .{ .grapheme = " " },
.style = .{ .fg = .{ .index = 0 } },
.style = style,
});
for (c..content.len) |c_i| {
try array.append(.{