[shared/desktop] Catppuccin for Zed using flake

This commit is contained in:
2025-09-07 13:34:45 +02:00
parent 6cf958235e
commit b28e5da9c2

View File

@ -1,13 +1,20 @@
{ pkgs, theme, ... }: { pkgs, theme, ... }:
{ {
catppuccin.zed = {
enable = true;
flavor = theme.flavor;
icons = {
enable = true;
flavor = theme.flavor;
};
};
programs.zed-editor = { programs.zed-editor = {
enable = true; enable = true;
package = pkgs.unstable.zed-editor; package = pkgs.unstable.zed-editor;
extensions = [ extensions = [
"html" "html"
"catppuccin"
"catppuccin-icons"
"toml" "toml"
"nix" "nix"
"git-firefly" "git-firefly"
@ -33,11 +40,6 @@
features = { features = {
edit_prediction_provider = "zed"; edit_prediction_provider = "zed";
}; };
icon_theme = {
mode = theme.mode;
light = "Catppuccin Latte";
dark = "Catppuccin Mocha";
};
ui_font_family = font; ui_font_family = font;
ui_font_size = fontSize; ui_font_size = fontSize;
buffer_font_size = fontSize; buffer_font_size = fontSize;
@ -45,11 +47,6 @@
file_icons = true; file_icons = true;
git_status = true; git_status = true;
}; };
theme = {
mode = theme.mode;
light = "Catppuccin Latte";
dark = "Catppuccin Mocha";
};
lsp.nil.initialization_options.formatting.command = [ "nixfmt" ]; lsp.nil.initialization_options.formatting.command = [ "nixfmt" ];
}; };
}; };