refactor: run zig fmt
This commit is contained in:
parent
da694d7ac2
commit
1cdfa834b9
3 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
fontface: [] const u8 = "Cascadia Code",
|
fontface: []const u8 = "Cascadia Code",
|
||||||
fontsize: u8 = 14,
|
fontsize: u8 = 14,
|
||||||
|
|
||||||
initial_window_x: u16 = 1087,
|
initial_window_x: u16 = 1087,
|
||||||
|
|
|
@ -445,7 +445,7 @@ pub const scheme = .{
|
||||||
pub const sql = .{
|
pub const sql = .{
|
||||||
.description = "SQL",
|
.description = "SQL",
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "sql" },
|
.extensions = .{"sql"},
|
||||||
.comment = "--",
|
.comment = "--",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -472,7 +472,7 @@ pub const verilog = .{
|
||||||
.highlights = "nvim-treesitter/queries/verilog/highlights.scm",
|
.highlights = "nvim-treesitter/queries/verilog/highlights.scm",
|
||||||
.injections = "nvim-treesitter/queries/verilog/injections.scm",
|
.injections = "nvim-treesitter/queries/verilog/injections.scm",
|
||||||
.language_server = .{"verible-verilog-ls"},
|
.language_server = .{"verible-verilog-ls"},
|
||||||
.formatter = .{ "verible-verilog-format", "-" }
|
.formatter = .{ "verible-verilog-format", "-" },
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const toml = .{
|
pub const toml = .{
|
||||||
|
|
|
@ -1290,7 +1290,8 @@ pub fn message(comptime fmt: anytype, args: anytype) void {
|
||||||
tp.self_pid().send(.{ "message", std.fmt.bufPrint(&buf, fmt, args) catch @panic("too large") }) catch {};
|
tp.self_pid().send(.{ "message", std.fmt.bufPrint(&buf, fmt, args) catch @panic("too large") }) catch {};
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn render_file_icon(self: *renderer.Plane, icon: []const u8, color: u24) void { var cell = self.cell_init();
|
pub fn render_file_icon(self: *renderer.Plane, icon: []const u8, color: u24) void {
|
||||||
|
var cell = self.cell_init();
|
||||||
_ = self.at_cursor_cell(&cell) catch return;
|
_ = self.at_cursor_cell(&cell) catch return;
|
||||||
if (!(color == 0xFFFFFF or color == 0x000000 or color == 0x000001)) {
|
if (!(color == 0xFFFFFF or color == 0x000000 or color == 0x000001)) {
|
||||||
cell.set_fg_rgb(@intCast(color)) catch {};
|
cell.set_fg_rgb(@intCast(color)) catch {};
|
||||||
|
@ -1307,4 +1308,3 @@ pub fn render_match_cell(self: *renderer.Plane, y: usize, x: usize, theme_: *con
|
||||||
cell.set_style(theme_.editor_match);
|
cell.set_style(theme_.editor_match);
|
||||||
_ = self.putc(&cell) catch {};
|
_ = self.putc(&cell) catch {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue