feat: make indent size and tab width configurable and add indent guide mode
This commit is contained in:
parent
55fb6d29a0
commit
d2238bf847
15 changed files with 363 additions and 323 deletions
|
@ -35,7 +35,7 @@ fn on_click(_: *Self, _: *Button.State(Self)) void {
|
|||
}
|
||||
|
||||
pub fn layout(self: *Self, btn: *Button.State(Self)) Widget.Layout {
|
||||
const len = btn.plane.egc_chunk_width(self.rendered, 0);
|
||||
const len = btn.plane.egc_chunk_width(self.rendered, 0, 1);
|
||||
return .{ .static = len };
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue