You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 27, 2024. It is now read-only.
I get huge freezes when opening a .zig source file (around 0.8-1.0 seconds), even when adding "zig" to disabled languages. I found this delay to be caused by nvim-ts-rainbow2 and for me only occurs with zig files so far.
Steps to reproduce
Open any .zig file, including the hello world example generated by zig init-exe:
conststd=@import("std");
pubfnmain() !void {
// Prints to stderr (it's a shortcut based on `std.io.getStdErr()`)std.debug.print("All your {s} are belong too us.\n", .{"codebase"});
// stdout is for the actual output of your application, for example if you// are implementing gzip, then only the compressed bytes should be sent to// stdout, not any debugging messages.conststdout_file=std.io.getStdOut().writer();
varbw=std.io.bufferedWriter(stdout_file);
conststdout=bw.writer();
trystdout.print("Run `zig build test` to run the tests.\n", .{});
trybw.flush(); // don't forget to flush!
}
test"simple test" {
varlist=std.ArrayList(i32).init(std.testing.allocator);
// defer list.deinit(); // try commenting this out and see if zig detects the memory leak!trylist.append(42);
trystd.testing.expectEqual(@as(i32, 42), list.pop());
}
Expected behavior
Either no freezes when editing a (simple) zig file (lag occurs on multiple events, like inserting new text or removing lines etc), or no freeze at all when adding zig to disabled languages.
Describe the bug
I get huge freezes when opening a .zig source file (around 0.8-1.0 seconds), even when adding "zig" to disabled languages. I found this delay to be caused by nvim-ts-rainbow2 and for me only occurs with zig files so far.
Steps to reproduce
Open any .zig file, including the hello world example generated by
zig init-exe:Expected behavior
Either no freezes when editing a (simple) zig file (lag occurs on multiple events, like inserting new text or removing lines etc), or no freeze at all when adding zig to disabled languages.