A language server for Zig supporting developers with features like autocomplete and goto definition https://zigtools.org/zls/install/
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-22 03:06:16 +02:00
.github CI: fail artifact deployment when attempting to override files 2026-10-20 01:11:22 +02:00
src mark deprecated builtins in completions and semantic tokens 2026-10-22 03:06:16 +02:00
tests fix signature help on function with type parameter as first param 2026-10-22 02:38:38 +02:00
.gitattributes fix and test build runner package collection issues (#2119) 2024-12-26 05:37:23 +01:00
.gitignore update .gitignore 2026-02-09 19:42:49 +01:00
build.zig build: make optimization mode optional 2026-10-19 21:32:29 +02:00
build.zig.zon begin the 0.18.0 release cycle 2026-10-19 20:43:52 +02:00
codecov.yml disable codecov Pull Request Comments 2024-08-16 20:18:12 +02:00
deps.nix update lsp-kit dependency 2026-10-17 17:42:21 +02:00
flake.lock nix: update to nixos-26.05 2026-10-15 00:32:26 +02:00
flake.nix nix: update to nixos-26.05 2026-10-15 00:32:26 +02:00
LICENSE Update LICENSE 2024-12-01 14:27:45 -05:00
README.md Revert "add warning about missing build system integration to README" 2026-10-14 18:59:05 +02:00
schema.json update to 7th draft and fix typos 2026-09-04 20:25:50 +02:00

ZLS Logo

CI codecov License: MIT Discord

ZLS is a non-official implementation of the Language Server Protocol for Zig in Zig. It provides developers with IDE features in their editor.

Installation

The complete installation guide is available on the Zigtools website. It covers editor setup, prebuilt binaries and additional documentation.

Build From Source

The default branch of ZLS targets Zig master.

git clone https://github.com/zigtools/zls
cd zls
zig build -Doptimize=ReleaseSafe

When upgrading Zig, make sure to update ZLS too keep them in sync.

Features

ZLS supports most language features, including simple type function support, payload capture type resolution, custom packages, and others. Support for comptime and semantic analysis is Work-in-Progress.

The majority of LSP features are supported:

  • Completions
  • Hover
  • Diagnostics and opt-in build-on-save
  • Go to definition/declaration
  • Workspace symbols and document symbols
  • Find references and rename symbol
  • Formatting based on zig fmt
  • Semantic tokens highlighting
  • Inlay hints
  • Code actions

Quick Thanks :)

We'd like to take a second to thank all our awesome contributors and donators/backers/sponsors; if you have time or money to spare, consider partaking in either of these options - they help keep ZLS awesome for everyone!

OpenCollective Backers