Editor

Language Server & editor

Lx ships a Language Server (LSP) and a VSCode extension, so your editor understands the code the same way the compiler does. Inferred types and docs on hover, context-aware autocomplete, go-to-definition, cross-file rename, live diagnostics and inlay type hints — plus an AI assistant grounded in your own project.

Features

Hover

Hover any binding to see its inferred type and doc — `name: type` rendered as Markdown.

Autocomplete

Context-aware completion for functions, struct fields, module functions and local bindings.

Go-to & references

Jump to a symbol's definition and find every reference across the workspace.

Rename

Safe, project-wide renames with prepareRename validation.

Live diagnostics

Type errors and warnings appear as you type, before you run anything.

Inlay type hints

Inferred type annotations shown inline (:: type), with an adjustable hint level in the editor.

Symbols & formatting

Document and workspace symbol search, signature help, code lenses, and `lx format` on save.

AI assistant

A built-in chat that knows your codebase — explain an error or a selection, grounded in your modules.

Editors

# VSCode / VSCodium
Install the official Lx extension (lx/vscode) from the Marketplace or as a .vsix.
It adds hover, completion, diagnostics, type-hint level controls and an AI panel.

# Any LSP-capable editor
The server speaks standard LSP, so it also works with Neovim (nvim-lspconfig),
Emacs (lsp-mode / eglot), Helix and Zed.

# Run the server directly
$ lx lsp            # language server over stdio