mod(node2buffer): adjust colors for blocks
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 30s
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 30s
This commit is contained in:
@@ -30,6 +30,7 @@ pub fn toBuffer(
|
|||||||
style.fg = .{ .index = 2 };
|
style.fg = .{ .index = 2 };
|
||||||
},
|
},
|
||||||
.block => {
|
.block => {
|
||||||
|
style.fg = .{ .index = 252 };
|
||||||
style.dim = true;
|
style.dim = true;
|
||||||
next_start = node.token.start;
|
next_start = node.token.start;
|
||||||
},
|
},
|
||||||
@@ -169,30 +170,30 @@ pub fn toBuffer(
|
|||||||
for (1..rows + 1) |r| {
|
for (1..rows + 1) |r| {
|
||||||
try array.append(.{
|
try array.append(.{
|
||||||
.char = .{ .grapheme = " " },
|
.char = .{ .grapheme = " " },
|
||||||
.style = .{ .fg = .{ .index = 0 } },
|
.style = style,
|
||||||
});
|
});
|
||||||
try array.append(.{
|
try array.append(.{
|
||||||
.char = .{ .grapheme = " " },
|
.char = .{ .grapheme = " " },
|
||||||
.style = .{ .fg = .{ .index = 0 } },
|
.style = style,
|
||||||
});
|
});
|
||||||
for (1..pad + 1) |i| {
|
for (1..pad + 1) |i| {
|
||||||
const digit = vaxis.widgets.LineNumbers.extractDigit(r, pad - i);
|
const digit = vaxis.widgets.LineNumbers.extractDigit(r, pad - i);
|
||||||
try array.append(.{
|
try array.append(.{
|
||||||
.char = .{ .grapheme = digits[digit .. digit + 1] },
|
.char = .{ .grapheme = digits[digit .. digit + 1] },
|
||||||
.style = .{ .fg = .{ .index = 0 } },
|
.style = style,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
try array.append(.{
|
try array.append(.{
|
||||||
.char = .{ .grapheme = " " },
|
.char = .{ .grapheme = " " },
|
||||||
.style = .{ .fg = .{ .index = 0 } },
|
.style = style,
|
||||||
});
|
});
|
||||||
try array.append(.{
|
try array.append(.{
|
||||||
.char = .{ .grapheme = "│" },
|
.char = .{ .grapheme = "│" },
|
||||||
.style = .{ .fg = .{ .index = 0 } },
|
.style = style,
|
||||||
});
|
});
|
||||||
try array.append(.{
|
try array.append(.{
|
||||||
.char = .{ .grapheme = " " },
|
.char = .{ .grapheme = " " },
|
||||||
.style = .{ .fg = .{ .index = 0 } },
|
.style = style,
|
||||||
});
|
});
|
||||||
for (c..content.len) |c_i| {
|
for (c..content.len) |c_i| {
|
||||||
try array.append(.{
|
try array.append(.{
|
||||||
|
|||||||
Reference in New Issue
Block a user