lsp-kit
Zig LSP Kit
Provides the necessary building blocks to develop Language Server Protocol implementations in Zig.
Installation
[!NOTE] The default branch requires Zig
0.17.0-dev.667+0569f1f6aor later. Checkout the0.16.xbranch when using Zig 0.16
# Initialize a `zig build` project if you haven't already
zig init
# Add the `lsp_kit` package to your `build.zig.zon`
zig fetch --save git+https://github.com/zigtools/lsp-kit.git
You can then import the lsp module in your build.zig with:
const lsp = b.dependency("lsp_kit", .{}).module("lsp");
const exe = b.addExecutable(...);
exe.root_module.addImport("lsp", lsp);