⚑ 43 developer tools, always updated β€” new upstream releases land in apt within hours. Join the Discord

πŸ“… From , the apt mirror will require a subscription. See pricing Β· πŸ†“ There is an always-free mirror

πŸ‡Ώ Install Latest ZLS on Ubuntu

Zig Language Server for IDE features and development productivity

Latest version: 0.16.0 Β· updated 2026-07-08
SourceVersion
deb.griffo.io0.16.0 βœ…
Official Ubuntu🚫 not packaged
← Back to home

What is ZLS?

ZLS (Zig Language Server) is a Language Server Protocol implementation for Zig written in Zig by the zigtools community. It provides developers with modern IDE features like autocomplete, goto definition, hover information, and semantic analysis in their favorite editors. With over 4k GitHub stars, it's the essential tool for productive Zig development.

πŸš€ Why Latest Versions Matter: ZLS is rapidly evolving alongside Zig itself, with frequent releases containing new language feature support, performance improvements, and enhanced IDE capabilities. The latest versions include better semantic analysis, improved completions, and compatibility with Zig 0.16+.

⚑ Key Features of ZLS

πŸ’‘ Smart Completions

Intelligent autocomplete for functions, variables, types, and imports. Context-aware suggestions based on current scope and available symbols.

πŸ” Navigation Features

Goto definition/declaration, find references, and document symbols. Navigate large Zig codebases with ease and precision.

πŸ“ Code Intelligence

Hover information, semantic token highlighting, and inlay hints. Understand code structure and types without manual lookup.

πŸ› οΈ Development Tools

Automatic formatting with zig fmt, code actions, selection ranges, and folding regions for better code organization.

πŸ”„ Symbol Operations

Rename symbols across entire codebase, find all references, and document symbol outline for project navigation.

πŸ“¦ Package Support

Custom package resolution, cImport support, and namespace handling for complex Zig projects and dependencies.

🎯 Supported Editors & IDEs

  • VS Code: Official Zig extension with ZLS integration
  • Neovim/Vim: Native LSP support and dedicated plugins
  • Emacs: lsp-mode and eglot compatibility
  • Sublime Text: LSP package integration
  • Kate/KDevelop: Built-in LSP support
  • Any LSP-compatible editor: Universal Language Server Protocol support
πŸš€ Always ahead of the official archives: Debian and Ubuntu freeze package versions when a release ships β€” this repository publishes new upstream releases typically within hours. A simple apt upgrade keeps you on the latest version.

πŸ“¦ Installation from deb.griffo.io

Run the commands

Step 1: Add Repository

sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
sudo apt update
install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt update

πŸ†“ There is an always-free mirror. deb-free.griffo.io serves packages free forever β€” no account, no subscription, at most 2 months behind upstream, security fixes immediately. It currently carries Ghostty, Oh My Posh and Zed; ZLS is not one of them, so the repository above is the only way to get it today β€” ask and it can be enrolled.

How the free mirror works β†’

Step 2: Install ZLS

# Install latest stable ZLS
sudo apt install zls

# Or install nightly builds for cutting-edge features
sudo apt install zls-master

# Verify installation
zls --version
# Install latest stable ZLS
apt install zls

# Or install nightly builds for cutting-edge features
apt install zls-master

# Verify installation
zls --version

🎯 Editor Setup Examples

VS Code setup:

# Install Zig extension from marketplace
# Extension automatically detects ZLS if installed in PATH

# Or configure custom ZLS path in settings.json:
{
    "zig.zls.path": "/usr/bin/zls"
}

Neovim setup (with nvim-lspconfig):

-- In your init.lua
require('lspconfig').zls.setup{
    cmd = { "zls" },
    filetypes = { "zig" },
    root_dir = require('lspconfig.util').root_pattern("build.zig", ".git"),
}

Basic ZLS configuration:

# Create ZLS config file
mkdir -p ~/.config/zls
cat > ~/.config/zls/zls.json << 'EOF'
{
    "enable_semantic_tokens": true,
    "enable_inlay_hints": true,
    "enable_snippets": true,
    "warn_style": true,
    "highlight_global_var_declarations": true
}
EOF

πŸš€ Why Choose deb.griffo.io?

πŸ“Š Repository Comparison:
  • Official Ubuntu: ZLS not available in official repositories
  • Manual Compilation: Requires Zig master and complex build process
  • Binary Downloads: Manual updates and no package management
  • deb.griffo.io: Latest version with automatic updates

πŸ“¦ Package Build Repository

The Ubuntu packages are automatically built and maintained in these GitHub repositories:

πŸ”— Related Packages

Also available from deb.griffo.io:

🎯 Perfect for: Zig developers who want modern IDE features, teams working on large Zig projects, anyone wanting autocomplete and navigation in their editor, and developers who appreciate productive development environments.

πŸ’ Support This Project

If this repository saves you time and effort, please consider supporting it!

⭐ Star on GitHub 🐦 Share on Twitter

Just after the command? See apt install zls β€” one page covering Debian and Ubuntu.

πŸ“¦ Recent releases from this repository

❓ Frequently asked questions

Is ZLS in the official Ubuntu repositories?

No β€” ZLS is not packaged in the official Ubuntu archives. This repository is currently the only apt source, serving ZLS 0.16.0.

How do I install the latest ZLS on Ubuntu?

Add the deb.griffo.io repository once using the instructions above, then run: sudo apt install zls. New releases arrive through the normal sudo apt upgrade.

Are the packages signed and how are they built?

Every package is signed with the repository's GPG key (EA0F721D231FDD3A0A17B9AC7808B4DD62C41256) and built from upstream releases in public GitHub packaging repositories that anyone can inspect.

Which Ubuntu releases are supported?

Ubuntu 22.04 Jammy, 24.04 Noble, 25.10 Questing and 26.04 Resolute.