https://github.com/angusgmorrison/wgsl-analyzer
WGSL language support with rich syntax highlighting. Powered by the wgsl-analyzer language server.
https://github.com/angusgmorrison/wgsl-analyzer
Last synced: 6 months ago
JSON representation
WGSL language support with rich syntax highlighting. Powered by the wgsl-analyzer language server.
- Host: GitHub
- URL: https://github.com/angusgmorrison/wgsl-analyzer
- Owner: AngusGMorrison
- License: mit
- Created: 2024-11-27T15:23:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T07:09:50.000Z (over 1 year ago)
- Last Synced: 2025-02-01T09:23:03.204Z (over 1 year ago)
- Language: Scheme
- Size: 249 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WGSL

WGSL language support for Zed, with rich syntax highlighting. Powered by the
[wgsl-analyzer language server](https://github.com/wgsl-analyzer/wgsl-analyzer).
Based on [Konrad Bochnia's WGSL Tree-sitter grammar](https://github.com/szebniok/tree-sitter-wgsl),
this extension improves upon the highlights to distinguish a wider variety of
syntax.
_Note_: I don't own or maintain the wgsl-analyzer language server, only this Zed
extension.
## Installation
To use this extension, manually install the language server, following the
instructions in [the wgsl-analyzer README](https://github.com/wgsl-analyzer/wgsl-analyzer/blob/main/README.md)
exactly.
This extension expects to find a language server binary named `wgsl_analyzer`,
_not_ `wgsl-analyzer`. This is the binary naming convention used by the language
server maintainers.
Automatic installation of the language server isn't currently possible, since
the wgsl-analyzer repository doesn't publish binary artifacts in its releases.
## Configuration
### Language
This extension adds WGSL support to Zed under the identifier "WGSL".
`.wgsl` files will be automatically identified as WGSL.
Zed's WGSL settings can be configured like so:
```json
{
"languages": {
"WGSL": {
// ...
}
}
}
```
### wgsl-analyzer
wgsl-analyzer can be configured like any other language server, using the
LSP ID `wgsl-analyzer`:
```json
{
"lsp": {
"wgsl-analyzer": {
// ...
}
}
}
```
The full list of supported options [is available here](https://github.com/wgsl-analyzer/wgsl-analyzer/blob/main/editors/code/README.md).