Zed: Difference between revisions
enhancements: formatting, structure, simplification |
m Link to Gram added. |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 23: | Line 23: | ||
The editor provides native builds for Linux, including Nixpkgs packages and a reproducible flake. Hardware acceleration requires a GPU with Vulkan support; systems without Vulkan can fall back to emulation via tools such as [https://github.com/nix-community/nixGL nixGL].<ref>Zed Industries, "Linux", Zed Documentation, Accessed October 2025. https://zed.dev/docs/linux</ref> | The editor provides native builds for Linux, including Nixpkgs packages and a reproducible flake. Hardware acceleration requires a GPU with Vulkan support; systems without Vulkan can fall back to emulation via tools such as [https://github.com/nix-community/nixGL nixGL].<ref>Zed Industries, "Linux", Zed Documentation, Accessed October 2025. https://zed.dev/docs/linux</ref> | ||
{{Nixpkg|pkgs/by-name/ze/zed-editor|zed-editor}} is available in Nixpkgs since 24.11; | <!--T:5--> | ||
However, Zed provides [https://github.com/zed-industries/zed/blob/main/flake.nix an official nix flake] which might be useful if you need features that have not yet reached unstable Nixpkgs. | {{Nixpkg|pkgs/by-name/ze/zed-editor|zed-editor}} is available in Nixpkgs since 24.11; However, Zed provides [https://github.com/zed-industries/zed/blob/main/flake.nix an official nix flake] which might be useful if you need features that have not yet reached unstable Nixpkgs. | ||
[[Gram]] is a fork of Zed with some features removed: AI integration, telemetry, user agreement and subscription. | |||
== Installation == <!--T:3--> | == Installation == <!--T:3--> | ||
<!--T:6--> | |||
The package installs both desktop launchers and a CLI entry point aliased to <code>zeditor</code>, mirroring the upstream binary name | The package installs both desktop launchers and a CLI entry point aliased to <code>zeditor</code>, mirroring the upstream binary name | ||
=== Imperative === <!--T:4--> | === Imperative === <!--T:4--> | ||
==== Zed's Flake ==== | ==== Zed's Flake ==== <!--T:45--> | ||
</translate> | </translate> | ||
| Line 99: | Line 102: | ||
Build the flake package with <code>nix build .#zed-latest</code> or expose it in your configuration with the appropriate overlay. | Build the flake package with <code>nix build .#zed-latest</code> or expose it in your configuration with the appropriate overlay. | ||
<!--T:12--> | |||
{{Warning|Zed requires hardware-accelerated Vulkan. On systems without supported drivers, use <code>nixGL</code> or home-manager's <code>nixGL.vulkan.enable {{=}} true;</code> to provide the necessary libraries. | {{Warning|Zed requires hardware-accelerated Vulkan. On systems without supported drivers, use <code>nixGL</code> or home-manager's <code>nixGL.vulkan.enable {{=}} true;</code> to provide the necessary libraries. | ||
Providing Vulkan through <code>nixGL</code> can be more consistent than relying on host distribution packages, especially on non-NixOS systems where Wayland and X11 stacks differ in their Vulkan capabilities.}} | Providing Vulkan through <code>nixGL</code> can be more consistent than relying on host distribution packages, especially on non-NixOS systems where Wayland and X11 stacks differ in their Vulkan capabilities.}} | ||
| Line 272: | Line 276: | ||
<!--T:19--> | <!--T:19--> | ||
The <code>userSettings</code> and <code> | The <code>userSettings</code> and <code>userKeymaps</code> options translate directly into JSON. The <code>extraPackages</code> option includes additional Nixpkgs in the FHS environment, useful for LSP servers (e.g., <code>pkgs.nixd</code>) or optional tools (e.g., <code>pkgs.shellcheck</code> for the Basher LSP). | ||
<!--T:20--> | <!--T:20--> | ||
| Line 433: | Line 437: | ||
<!--T:41--> | <!--T:41--> | ||
When Zed reports missing tools, add the required executables to <code>programs.zed-editor.extraPackages</code> or wrap the server using <code>pkgs.writeShellApplication</code>. | When Zed reports missing tools, add the required executables to <code>programs.zed-editor.extraPackages</code> or wrap the server using <code>pkgs.writeShellApplication</code>. | ||
</translate> | |||
==== GitHub Copilot CLI not logging in ==== | |||
<translate> | |||
GitHub Copilot CLI (External Agent) may fail to log in because of issues with the libsecret library. If you use [[Nix-ld]], enable the following libraries: | |||
{{file|configuration.nix|nix|<nowiki> | |||
{ | |||
programs.nix-ld.libraries = with pkgs; [ | |||
libsecret | |||
glib | |||
]; | |||
} | |||
</nowiki>}} | |||
</translate> | </translate> | ||