refactor: zig fmt all source files
This commit is contained in:
parent
f0343bf2c9
commit
118b2b56f8
4 changed files with 2 additions and 4 deletions
|
@ -252,7 +252,7 @@ pub const nu = .{
|
||||||
.icon = ">",
|
.icon = ">",
|
||||||
.extensions = .{ "nu", "nushell" },
|
.extensions = .{ "nu", "nushell" },
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
.language_server = .{"nu", "--lsp"},
|
.language_server = .{ "nu", "--lsp" },
|
||||||
.highlights = "tree-sitter-nu/queries/nu/highlights.scm",
|
.highlights = "tree-sitter-nu/queries/nu/highlights.scm",
|
||||||
.injections = "tree-sitter-nu/queries/nu/injections.scm",
|
.injections = "tree-sitter-nu/queries/nu/injections.scm",
|
||||||
};
|
};
|
||||||
|
|
|
@ -160,7 +160,7 @@ fn mapRelease(self: *Self, keypress: u32, _: u32, _: u32) !void {
|
||||||
fn insert_code_point(self: *Self, c: u32) !void {
|
fn insert_code_point(self: *Self, c: u32) !void {
|
||||||
var buf: [16]u8 = undefined;
|
var buf: [16]u8 = undefined;
|
||||||
const bytes = ucs32_to_utf8(&[_]u32{c}, &buf) catch |e| return tp.exit_error(e, @errorReturnTrace());
|
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 {
|
fn insert_bytes(self: *Self, bytes: []const u8) !void {
|
||||||
|
|
|
@ -2,7 +2,6 @@ const std = @import("std");
|
||||||
const tp = @import("thespian");
|
const tp = @import("thespian");
|
||||||
const root = @import("root");
|
const root = @import("root");
|
||||||
|
|
||||||
|
|
||||||
const tui = @import("../../tui.zig");
|
const tui = @import("../../tui.zig");
|
||||||
const mainview = @import("../../mainview.zig");
|
const mainview = @import("../../mainview.zig");
|
||||||
const command = @import("../../command.zig");
|
const command = @import("../../command.zig");
|
||||||
|
|
|
@ -2,7 +2,6 @@ const std = @import("std");
|
||||||
const tp = @import("thespian");
|
const tp = @import("thespian");
|
||||||
const root = @import("root");
|
const root = @import("root");
|
||||||
|
|
||||||
|
|
||||||
const tui = @import("../../tui.zig");
|
const tui = @import("../../tui.zig");
|
||||||
const mainview = @import("../../mainview.zig");
|
const mainview = @import("../../mainview.zig");
|
||||||
const command = @import("../../command.zig");
|
const command = @import("../../command.zig");
|
||||||
|
|
Loading…
Add table
Reference in a new issue