all repos — dotfiles @ 6d79b364fff07095f838185c6c4abbf9941a4ee6

my *nix dotfiles

programs/zed/settings.nix (view raw)

 1{ config, pkgs, lib, ... }:
 2
 3let
 4  zedSettings = {
 5    telemetry = {
 6      diagnostics = false;
 7      metrics = false;
 8    };
 9    base_keymap = "VSCode";
10    buffer_font_size = 15;
11    theme = "Icy Light";
12    buffer_font_family = "SF Mono";
13    buffer_font_weight = 500;
14    ui_font_family = "System Font";
15    ui_font_size = 18;
16    vim_mode = true;
17    vim = {
18      use_system_clipboard = "never";
19    };
20    gutter = {
21      line_numbers = false;
22    };
23    terminal = {
24      working_directory = "current_project_directory";
25      option_as_meta = true;
26      env = {
27        EDITOR = "zed --wait";
28      };
29      shell = {
30        program = "fish";
31      };
32    };
33    project_panel = {
34      file_icons = false;
35      folder_icons = false;
36      indent_size = 10;
37    };
38    chat_panel = {
39      button = false;
40    };
41    collaboration_panel = {
42      button = false;
43    };
44    assistant = {
45      default_model = {
46        provider = "copilot_chat";
47        model = "gpt-4";
48      };
49      version = "2";
50      enabled = true;
51      button = true;
52    };
53    scrollbar = {
54      show = "auto";
55    };
56    toolbar = {
57      breadcrumbs = true;
58      quick_actions = true;
59    };
60    tab_bar = {
61      show = false;
62    };
63  };
64
65  zedSettingsFile = pkgs.writeText "settings.json" (builtins.toJSON zedSettings);
66in
67{
68  home.file.".config/zed/settings.json".source = zedSettingsFile;
69}