https://github.com/zigtools/zig-lsp-codegen
LSP codegen based on the MetaModel
https://github.com/zigtools/zig-lsp-codegen
lsp zig zig-package
Last synced: 2 months ago
JSON representation
LSP codegen based on the MetaModel
- Host: GitHub
- URL: https://github.com/zigtools/zig-lsp-codegen
- Owner: zigtools
- License: mit
- Created: 2022-05-30T05:57:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-06T17:53:14.000Z (3 months ago)
- Last Synced: 2025-04-13T09:37:35.855Z (3 months ago)
- Topics: lsp, zig, zig-package
- Language: Zig
- Homepage: https://zigtools.github.io/zig-lsp-codegen/
- Size: 230 KB
- Stars: 34
- Watchers: 5
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/zigtools/zig-lsp-codegen/actions)
[](https://codecov.io/gh/zigtools/zig-lsp-codegen)
[](https://zigtools.github.io/zig-lsp-codegen)
[](https://opensource.org/licenses/MIT)# Zig LSP Codegen
Generates `std.json` compatible Zig code based on the official [LSP MetaModel](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#metaModel)
## Installation
> [!NOTE]
> The minimum supported Zig version is `0.14.0`.```bash
# 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:
```zig
const lsp_codegen = b.dependency("lsp_codegen", .{});
const exe = b.addExecutable(...);
exe.root_module.addImport("lsp", lsp_codegen.module("lsp"));
```