programs/zed/settings.nix (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
{ pkgs, lib, ... }: let isDarwin = lib.strings.hasSuffix "darwin" pkgs.stdenv.hostPlatform.system; zedSettings = { telemetry = { diagnostics = false; metrics = false; }; active_pane_modifiers = { inactive_opacity = 0.8; magnification = 1.5; }; base_keymap = "VSCode"; buffer_font_size = 15; theme = { mode = "system"; light = "Warm Icy Light"; dark = "Warm Icy Dark"; }; buffer_font_family = "SF Mono"; buffer_font_weight = 500; ui_font_family = if isDarwin then "System Font" else "Inter"; ui_font_size = 18; vim_mode = true; vim = { use_system_clipboard = "never"; }; gutter = { line_numbers = false; runnables = false; folds = false; }; terminal = { button = false; working_directory = "current_project_directory"; option_as_meta = true; env = { EDITOR = if isDarwin then "zed --wait" else "zeditor --wait"; }; shell = { program = "fish"; }; }; outline_panel = { button = false; }; project_panel = { button = false; file_icons = false; folder_icons = false; indent_size = 10; }; chat_panel = { button = false; }; collaboration_panel = { button = false; }; notification_panel = { button = false; }; assistant = { default_model = { provider = "zed.dev"; model = "claude-3-7-sonnet"; }; version = "2"; enabled = true; button = false; }; scrollbar = { show = "never"; }; toolbar = { breadcrumbs = false; quick_actions = false; selections_menu = false; }; tab_bar = { show = false; }; preview_tabs = { enable = false; }; }; zedSettingsFile = pkgs.writeText "settings.json" (builtins.toJSON zedSettings); in { home.file.".config/zed/settings.json".source = zedSettingsFile; } |