add zed config and fix font config

This commit is contained in:
ulic-youthlic 2025-04-10 20:28:50 +08:00
parent 1e36b390e5
commit 04323ffad8
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
3 changed files with 20 additions and 4 deletions

View file

@ -43,12 +43,10 @@
font-feature = [
"calt"
"zero"
"cv01"
"cv03"
"cv96"
"cv97"
"cv98"
"cv99"
"ss05"
"ss08"
];
font-size = lib.mkForce 17;

View file

@ -14,6 +14,7 @@ in
};
};
config = lib.mkIf cfg.enable {
stylix.targets.zed.enable = false;
programs.zed-editor = {
enable = true;
extensions = [
@ -24,6 +25,23 @@ in
nil
];
userSettings = {
autosave = "on_focus_change";
auto_update = false;
"format_on_save" = "off";
ui_font_size = 20;
buffer_font_size = 20;
buffer_font_family = "Maple Mono NF CN";
buffer_font_features = {
"calt" = true;
"zero" = true;
"cv03" = true;
"cv96" = true;
"cv97" = true;
"cv98" = true;
"ss08" = true;
};
ui_font_family = "Source Han Sans SC";
theme = "Ayu Dark";
vim_mode = true;
};
};