43 个开发者工具,始终保持最新 — 上游每次发布后数小时内即可通过 apt 获取。 加入 Discord

📅 自 起,使用本 apt 镜像将需要订阅。 查看价格

🇿 安装最新的 ZLS 在 Debian 上

Zig Language Server for IDE features and development productivity

最新版本:0.16.0 · 更新于 2026-07-08
来源版本
deb.griffo.io0.16.0 ✅
官方 Debian🚫 未收录
← 返回首页

什么是 ZLS?

ZLS (Zig Language Server) is a 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
🚀 始终领先于官方软件源:Debian 和 Ubuntu 在发布时会冻结软件包版本——本仓库通常在上游发布后数小时内即发布新版本。只需 apt upgrade 即可始终保持最新版本。

📦 从 deb.griffo.io 安装

运行命令

步骤 1:添加仓库

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

步骤 2:安装 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

🚀 为什么选择 deb.griffo.io?

📊 Repository Comparison:
  • Official Debian: 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

📦 软件包构建仓库

Debian 软件包在这些 GitHub 仓库中自动构建和维护:

🔗 相关软件包

也可从 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.

📦 本仓库最近发布

❓ 常见问题

ZLS 在官方 Debian 软件源中吗?

不在 — 官方 Debian 源没有打包 ZLS。本仓库目前是唯一的 apt 来源,提供 ZLS 0.16.0。

如何在 Debian 上安装最新版 ZLS?

按上方说明一次性添加 deb.griffo.io 仓库,然后运行:sudo apt install zls。之后通过常规的 sudo apt upgrade 获取新版本。

软件包是否有签名?如何构建?

每个软件包都使用仓库的 GPG 密钥(EA0F721D231FDD3A0A17B9AC7808B4DD62C41256)签名,并基于上游发布在公开的 GitHub 仓库中构建,任何人都可以审查。

支持哪些 Debian 版本?

Debian 12 Bookworm、Debian 13 Trixie、Forky 和 Sid。