Examples

Focused servers that demonstrate one or two LSP features at a time.

Hover

Minimal hover provider returning markdown content.

View source

Completion

Keyword completions plus completion item resolve.

View source

Diagnostics

Publishes TODO diagnostics using document.Store.

View source

Code Actions

Reports trailing whitespace and offers a quick fix edit.

View source

Symbols

Document and workspace symbol providers over open documents.

View source

Toylang

A small env-file language server combining diagnostics, hover, completion, and definition.

View source

Run an Example

go run ./examples/diagnostics

Point your editor's LSP configuration at the resulting command using stdio transport.