hurl-lsp

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 19 Imported by: 0

README

hurl-lsp

A Language Server Protocol (LSP) server for Hurl.

hurl-lsp provides language server capabilities for Hurl files. It can optionally integrate with your OpenAPI specifications to provide spec-aware suggestions and validations.

Installation

From source
git clone git@github.com:ethancarlsson/hurl-lsp.git
cd hurl-lsp
go install
Go install
go install github.com/ethancarlsson/hurl-lsp

Usage

Configure your LSP client to use the hurl-lsp binary.

Neovim
vim.lsp.config["hurl_ls"] = {
	cmd = { "hurl-lsp" },
	filetypes = {"hurl"}
}

vim.lsp.enable("hurl_ls")

Configuration

To enable OpenAPI-aware features, create a configuration file named .hurl-ls.json in the root of your project.

Example .hurl-ls.json
{
  "openapi_def": [
    "./api-spec.yaml",
    "./another-spec.json"
  ]
}
  • openapi_def: An array of paths to your OpenAPI definition files. Both JSON and YAML formats are supported.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
rawjson
This package includes helpers for json strings and lines of JSON strings.
This package includes helpers for json strings and lines of JSON strings.
state
state encapsulates the global state of the applications so we can see all mutations in one place
state encapsulates the global state of the applications so we can see all mutations in one place

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL