Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T16:41:11.000Z (5 months ago)
- Last Synced: 2024-10-29T16:20:15.716Z (3 months ago)
- Topics: lsp, zig, zig-package
- Language: Zig
- Homepage: https://zigtools.github.io/zig-lsp-codegen/
- Size: 194 KB
- Stars: 24
- Watchers: 5
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![CI](https://github.com/zigtools/zig-lsp-codegen/actions/workflows/main.yml/badge.svg)](https://github.com/zigtools/zig-lsp-codegen/actions)
[![codecov](https://codecov.io/gh/zigtools/zig-lsp-codegen/graph/badge.svg?token=C3HCN59E4C)](https://codecov.io/gh/zigtools/zig-lsp-codegen)
[![Documentation](https://badgen.net/badge/icon/Docs?icon=wiki&label)](https://zigtools.github.io/zig-lsp-codegen)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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
```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"));
```