Jsonnet Language Server
A Language Server Protocol (LSP) server for Jsonnet.
Features
Jump to definition
self-support.mp4
dollar-support.mp4
Error/Warning Diagnostics
error-support.mp4
Linting Diagnostics
linting-support.mp4
Standard Library Hover and Autocomplete
stdlib-support.mp4
Formatting
Installation
To install the LSP server with Go into "${GOPATH}"/bin:
go get -u github.com/grafana/jsonnet-language-server
To download the latest release binary from GitHub:
curl -Lo jsonnet-language-server https://github.com/grafana/jsonnet-language-server/releases/latest/download/jsonnet-language-server
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. Contributions will be rebased before merge to ensure a fast-forward merge.
Developer Certificate of Origin (DCO)
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.
Editor integration
Emacs
Refer to editor/jsonnet-language-server.el for an example of enabling the LSP server with lsp-mode.
VSCodium / VSCode
Use the vscode-jsonnet extension