https://github.com/grafana/jsonnet-language-server
A Language Server Protocol (LSP) server for Jsonnet (https://jsonnet.org)
https://github.com/grafana/jsonnet-language-server
jsonnet language-server lsp-server
Last synced: 5 months ago
JSON representation
A Language Server Protocol (LSP) server for Jsonnet (https://jsonnet.org)
- Host: GitHub
- URL: https://github.com/grafana/jsonnet-language-server
- Owner: grafana
- License: agpl-3.0
- Created: 2021-12-12T19:38:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-28T21:20:48.000Z (5 months ago)
- Last Synced: 2025-04-28T22:44:38.962Z (5 months ago)
- Topics: jsonnet, language-server, lsp-server
- Language: Go
- Homepage:
- Size: 1.41 MB
- Stars: 189
- Watchers: 143
- Forks: 28
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Jsonnet Language Server
A **[Language Server Protocol (LSP)](https://langserver.org)** server for [Jsonnet](https://jsonnet.org).
## Features
### Jump to definition
https://user-images.githubusercontent.com/29210090/145594957-efc01d97-d4c1-4fad-85cb-f5cb4a5f0e97.mp4
https://user-images.githubusercontent.com/29210090/145594976-670fff41-55e9-4ff9-b104-b5ac1cf77b42.mp4
https://user-images.githubusercontent.com/29210090/154743159-81adf3b3-e929-4731-8b23-718085d222c5.mp4
### Error/Warning Diagnostics
https://user-images.githubusercontent.com/29210090/145595007-59dd4276-e8c2-451e-a1d9-bfc7fd83923f.mp4
### Linting Diagnostics
https://user-images.githubusercontent.com/29210090/145595044-ca3f09cf-5806-4586-8aa8-720b6927bc6d.mp4
### Standard Library Hover and Autocomplete
https://user-images.githubusercontent.com/29210090/145595059-e34c6d25-eff3-41df-ae4a-d3713ee35360.mp4
### Formatting
## Installation
Download the latest release binary from GitHub: https://github.com/grafana/jsonnet-language-server/releases
## Contributing
Contributions are more than welcome and I will try my best to be prompt
with reviews.### Commits
Individual commits should be meaningful and have useful commit messages.
For tips on writing commit messages, refer to [How to write a commit
message](https://chris.beams.io/posts/git-commit/). Contributions will
be rebased before merge to ensure a fast-forward merge.### [Developer Certificate of Origin (DCO)](https://github.com/probot/dco#how-it-works)
Contributors must sign the DCO for their contributions to be accepted.
### Code style
Go code should be formatted with `gofmt` and linted with
[golangci-lint](https://golangci-lint.run/).## Editor integration
* Emacs: Refer to [editor/emacs](editor/emacs)
* Vim: Refer to [editor/vim](editor/vim)
* VSCod(e|ium): Use the [Jsonnet Language Server extension](https://marketplace.visualstudio.com/items?itemName=Grafana.vscode-jsonnet) ([source code](https://github.com/grafana/vscode-jsonnet))
* Jetbrains: Use the [Jsonnet Language Server plugin](https://plugins.jetbrains.com/plugin/18752-jsonnet-language-server) ([source code](https://github.com/zzehring/intellij-jsonnet))