Provides the necessary building blocks to develop Language Server Protocol implementations in Zig.
Note
The default branch requires Zig 0.15.0-dev.1018+1a998886c
or later. Checkout the 0.14.x
branch when using Zig 0.14
# 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"));