From d4bd6d422ec68c03586ed91ddae8be26e9b3dd09 Mon Sep 17 00:00:00 2001 From: Nameless Date: Sat, 4 Jul 2020 10:04:36 -0500 Subject: [PATCH] add semantic tokens to config build step --- build.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.zig b/build.zig index 2dd7c79..0f3949f 100644 --- a/build.zig +++ b/build.zig @@ -15,6 +15,7 @@ pub fn config(step: *std.build.Step) anyerror!void { const lib_path = try zinput.askDirPath(builder.allocator, "What is your Zig lib path (path that contains the 'std' folder)?", 512); const snippets = try zinput.askBool("Do you want to enable snippets?"); const style = try zinput.askBool("Do you want to enable style warnings?"); + const semantic_tokens = try zinput.askBool("Do you want to enable semantic highlighting?"); var dir = try std.fs.cwd().openDir(builder.exe_dir, .{}); defer dir.close(); @@ -30,6 +31,7 @@ pub fn config(step: *std.build.Step) anyerror!void { .zig_lib_path = lib_path, .enable_snippets = snippets, .warn_style = style, + .enable_semantic_tokens = semantic_tokens, }, std.json.StringifyOptions{}, out); std.debug.warn("Successfully saved configuration options!\n", .{});