Jsonnet Language Server
Warning: This project is in active development and is likely very buggy.
A Language Server Protocol (LSP) server for Jsonnet.
Features
- Jump to definition
- For local variables, import and importstr files, and index targets.
- Workspace symbols
- Return a hierarchy of document symbols representing most nodes of the Jsonnet AST.
- Diagnostics
- Static errors and warnings of runtime errors.
- Formatting
- Format document according to default options.
Refer to example.jsonnet for a documented walkthrough.
Installation
To install the LSP server with Go into “${GOPATH}”/bin:
go get -u github.com/jdbaldry/jsonnet-language-server
To download the latest release binary from GitHub:
curl -Lo jsonnet-language-server https://github.com/jdbaldry/jsonnet-language-server/releases/latest/download/jsonnet-language-server
Editor integration
For Emacs, refer to editor/jsonnet-language-server.el for an example of enabling the LSP server with lsp-mode.