Skip to content

zigtools/zig-lsp-codegen

Repository files navigation

CI codecov Documentation License: MIT

Zig LSP Codegen

Generates std.json compatible Zig code based on the official LSP MetaModel

Installation

# 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.git

You 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"));