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 <elliott.codes@gmail.com>
This commit is contained in:
parent
fa738ee5e1
commit
64a6e9cafb
2 changed files with 25 additions and 1 deletions
|
@ -32,6 +32,7 @@ Zed supports hundreds of programming languages and text formats. Some work out-o
|
||||||
- [JavaScript](./languages/javascript.md)
|
- [JavaScript](./languages/javascript.md)
|
||||||
- [Julia](./languages/julia.md)
|
- [Julia](./languages/julia.md)
|
||||||
- [JSON](./languages/json.md)
|
- [JSON](./languages/json.md)
|
||||||
|
- [Jsonnet](./languages/jsonnet.md)
|
||||||
- [Kotlin](./languages/kotlin.md)
|
- [Kotlin](./languages/kotlin.md)
|
||||||
- [Lua](./languages/lua.md)
|
- [Lua](./languages/lua.md)
|
||||||
- [Luau](./languages/luau.md)
|
- [Luau](./languages/luau.md)
|
||||||
|
@ -104,7 +105,6 @@ Zed supports hundreds of programming languages and text formats. Some work out-o
|
||||||
- [Groq](https://github.com/juice49/zed-groq)
|
- [Groq](https://github.com/juice49/zed-groq)
|
||||||
- [INI](https://github.com/bajrangCoder/zed-ini)
|
- [INI](https://github.com/bajrangCoder/zed-ini)
|
||||||
- [Java](https://github.com/zed-extensions/java)
|
- [Java](https://github.com/zed-extensions/java)
|
||||||
- [Jsonnet](https://github.com/narqo/zed-jsonnet)
|
|
||||||
- [Justfiles](https://github.com/jackTabsCode/zed-just)
|
- [Justfiles](https://github.com/jackTabsCode/zed-just)
|
||||||
- [LaTeX](https://github.com/rzukic/zed-latex)
|
- [LaTeX](https://github.com/rzukic/zed-latex)
|
||||||
- [Ledger](https://github.com/mrkstwrt/zed-ledger)
|
- [Ledger](https://github.com/mrkstwrt/zed-ledger)
|
||||||
|
|
24
docs/src/languages/jsonnet.md
Normal file
24
docs/src/languages/jsonnet.md
Normal file
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue