- Switch Zed remote server and Flatpak packages to use `enable` suboption - Update host modules to match the new option hierarchy - Add default C++ settings (format on save, tab size) to Zed user settings - Introduce clangd LSP configuration with inlay hints and fallback command
24 lines
479 B
Nix
24 lines
479 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options.zed-editor = {
|
|
enable = lib.mkEnableOption "Zed Editor";
|
|
remote-server.enable = lib.mkEnableOption "Zed Editor Remote Server";
|
|
};
|
|
|
|
config.programs.zed-editor = lib.mkIf config.zed-editor.enable {
|
|
enable = true;
|
|
package = pkgs.zed-editor;
|
|
installRemoteServer = lib.mkIf config.zed-editor.remote-server.enable true;
|
|
};
|
|
|
|
imports = [
|
|
./user-settings
|
|
./extensions.nix
|
|
./extra-packages.nix
|
|
];
|
|
}
|