home/zed: improved defaults

This commit is contained in:
Aly Raffauf 2024-07-13 23:35:22 -04:00
parent 5ba420030a
commit 4406bff102

View file

@ -13,8 +13,8 @@
xdg.configFile."zed/settings.json".text = let xdg.configFile."zed/settings.json".text = let
defaults = { defaults = {
auto_install_extensions = { auto_install_extensions = {
adwaita_pastel = true; adwaita-pastel = true;
bahser = true; basher = true;
docker-compose = true; docker-compose = true;
dockerfile = true; dockerfile = true;
git-firefly = true; git-firefly = true;
@ -25,14 +25,14 @@
log = true; log = true;
make = true; make = true;
nix = true; nix = true;
python = true;
ruby = true; ruby = true;
}; };
auto_update = false; auto_update = false;
autosave = "on_focus_change"; autosave.after_delay.milliseconds = 1000;
buffer_font_family = "NotoSansM Nerd Font"; buffer_font_family = "NotoSansM Nerd Font";
buffer_font_size = 14; buffer_font_size = 14;
current_line_highlight = "line";
indent_guides = { indent_guides = {
enabled = true; enabled = true;
@ -42,10 +42,26 @@
}; };
languages = { languages = {
Nix.formatter.external = { Nix = {
formatter.external = {
command = lib.getExe pkgs.alejandra; command = lib.getExe pkgs.alejandra;
arguments = []; arguments = [];
}; };
tab_size = 2;
};
};
preferred_line_length = 80;
tab_bar = {
show = false;
show_nav_history_buttons = false;
};
tabs = {
close_position = "right";
git_status = true;
}; };
telemetry = { telemetry = {
@ -53,10 +69,13 @@
metrics = true; metrics = true;
}; };
theme = terminal.font_size = 12;
if config.ar.home.theme.darkMode
then "Adwaita Pastel Dark" theme = {
else "Adwaita Pastel Light"; dark = "Adwaita Pastel Dark";
light = "Adwaita Pastel Light";
mode = "system";
};
ui_font_size = 16; ui_font_size = 16;
vim_mode = false; vim_mode = false;