Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.2 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.2 KB

CI codecov Documentation License: MIT

Zig LSP Codegen

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

Installation

Note

The minimum supported Zig version is 0.14.0-dev.3445+6c3cbb0c8.

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