A Zig language server supporting Zig developers with features like autocomplete and goto definition
Find a file
2026-05-12 23:39:04 +02:00
.github CI: disable build runner check for Zig 0.16.0 2026-05-07 16:06:12 +02:00
src remove usage of std.posix 2026-05-12 23:39:04 +02:00
tests do not resolve aliases when renaming symbol 2026-05-12 16:49:40 +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 set minimum runtime Zig version to 0.17.0-dev.274+7eb79daff 2026-05-12 16:38:42 +02:00
build.zig.zon set minimum zig version to 0.17.0-dev.292+fc1c83a36 2026-05-12 16:38:42 +02:00
codecov.yml disable codecov Pull Request Comments 2024-08-16 20:18:12 +02:00
deps.nix update diffz and known-folders dependency 2026-05-04 20:50:19 +02:00
flake.lock flake.lock: Update 2026-05-12 16:38:42 +02:00
flake.nix nix: pin Zig version based on minimum_zig_version field in zon file 2026-04-16 21:05:43 +02:00
LICENSE Update LICENSE 2024-12-01 14:27:45 -05:00
README.md remove related projects section from readme 2026-05-04 18:44:04 +02:00
schema.json update documentation of skip_std_references config option 2026-04-16 21:05:37 +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