Generates std.json compatible Zig code based on the official LSP MetaModel
Note
The minimum supported Zig version is 0.14.0.
# Initialize a `zig build` project if you haven't already
zig init
# Add the `lsp_codegen` package to your `build.zig.zon`
zig fetch --save git+https://github.com/zigtools/zig-lsp-codegen.gitYou can then import lsp_codegen in your build.zig with:
const lsp_codegen = b.dependency("lsp_codegen", .{});
const exe = b.addExecutable(...);
exe.root_module.addImport("lsp", lsp_codegen.module("lsp"));