Zig Language Server is an unofficial Language Server Protocol implementation written in Zig for enhancing the Zig programming experience within compatible code editors. It provides contextual autocompletion, hover documentation, and source code navigation. Integrated diagnostic functionality identifies programming errors and optionally executes builds when files are saved. Symbol management tools enable developers to locate declarations, find references, and rename identifiers across projects. Source code formatting uses Zig's native formatting conventions. Semantic highlighting and inlay hints improve source code readability and contextual understanding. Integrated code actions assist with supported code modifications and corrections. ZLS supports custom packages, while compile-time evaluation and semantic analysis remain under development.
Features
- Contextual Zig code autocompletion with intelligent type resolution and hover-based documentation
- Real-time diagnostic reporting with optional build-on-save functionality for detecting compilation errors
- Advanced source code navigation with declaration lookup, definition discovery, and workspace symbol searching
- Integrated reference searching and identifier renaming for maintaining and refactoring Zig projects
- Native Zig code formatting with semantic syntax highlighting, inlay hints, and contextual code actions
- Language Server Protocol compatibility with customizable editor integrations and custom package support