refactor: zig fmt all source files

This commit is contained in:
CJ van den Berg 2024-10-14 12:16:00 +02:00
parent f0343bf2c9
commit 118b2b56f8
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 2 additions and 4 deletions

View file

@ -252,7 +252,7 @@ pub const nu = .{
.icon = ">",
.extensions = .{ "nu", "nushell" },
.comment = "#",
.language_server = .{"nu", "--lsp"},
.language_server = .{ "nu", "--lsp" },
.highlights = "tree-sitter-nu/queries/nu/highlights.scm",
.injections = "tree-sitter-nu/queries/nu/injections.scm",
};

View file

@ -160,7 +160,7 @@ fn mapRelease(self: *Self, keypress: u32, _: u32, _: u32) !void {
fn insert_code_point(self: *Self, c: u32) !void {
var buf: [16]u8 = undefined;
const bytes = ucs32_to_utf8(&[_]u32{c}, &buf) catch |e| return tp.exit_error(e, @errorReturnTrace());
try self.input.appendSlice(buf[0 .. bytes]);
try self.input.appendSlice(buf[0..bytes]);
}
fn insert_bytes(self: *Self, bytes: []const u8) !void {

View file

@ -2,7 +2,6 @@ const std = @import("std");
const tp = @import("thespian");
const root = @import("root");
const tui = @import("../../tui.zig");
const mainview = @import("../../mainview.zig");
const command = @import("../../command.zig");

View file

@ -2,7 +2,6 @@ const std = @import("std");
const tp = @import("thespian");
const root = @import("root");
const tui = @import("../../tui.zig");
const mainview = @import("../../mainview.zig");
const command = @import("../../command.zig");