-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Outline Jsonnet language (#19410)
This PR adds a basic documentation about the Jsonnet language support. Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <[email protected]>
- Loading branch information
1 parent
fa738ee
commit 64a6e9c
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Jsonnet | ||
|
||
Jsonnet language support in Zed is provided by the community-maintained [Jsonnet extension](https://github.com/narqo/zed-jsonnet). | ||
|
||
- Tree Sitter: [sourcegraph/tree-sitter-jsonnet](https://github.com/sourcegraph/tree-sitter-jsonnet) | ||
- Language Server: [grafana/jsonnet-language-server](https://github.com/grafana/jsonnet-language-server) | ||
|
||
## Configuration | ||
|
||
Workspace configuration options can be passed to the language server via the `lsp` settings of the `settings.json`. | ||
|
||
The following example enables support for resolving [tanka](https://tanka.dev) import paths in `jsonnet-language-server`: | ||
|
||
```json | ||
{ | ||
"lsp": { | ||
"jsonnet-language-server": { | ||
"settings": { | ||
"resolve_paths_with_tanka": true | ||
} | ||
} | ||
} | ||
} | ||
``` |