forked from fabian/nix_config
config: add zed editor
This commit is contained in:
parent
3e9486099d
commit
8024a1ed64
3 changed files with 81 additions and 20 deletions
|
@ -9,11 +9,11 @@
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
./baseline.nix
|
./baseline.nix
|
||||||
./gaming.nix
|
./gaming.nix
|
||||||
./zed.nix
|
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./gui
|
./gui
|
||||||
./zsh
|
./zsh
|
||||||
./defaultDesktopPack.nix
|
./defaultDesktopPack.nix
|
||||||
./mapping.nix
|
./mapping.nix
|
||||||
|
./zed.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,26 +7,87 @@
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.zed;
|
cfg = config.local.apps.zed;
|
||||||
in {
|
in {
|
||||||
options.local.apps.zed = {
|
options.local.apps.zed.enable = mkEnableOption "zed editor settings";
|
||||||
enable = mkEnableOption "zed settings";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.zed-editor = {
|
programs.zed-editor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userSettings = {
|
extensions = [
|
||||||
features = {
|
"nix"
|
||||||
copilot = false;
|
"codebook"
|
||||||
};
|
"vscode-dark-high-contrast"
|
||||||
telemetry = {
|
"catppuccin-icons"
|
||||||
metrics = false;
|
];
|
||||||
};
|
extraPackages = with pkgs; [
|
||||||
vim_mode = false;
|
nixd
|
||||||
ui_font_size = 16;
|
];
|
||||||
buffer_font_size = 16;
|
userSettings = {
|
||||||
base_keymap = "VSCode";
|
disable_ai = true;
|
||||||
|
theme = {
|
||||||
|
dark = "VSCode Dark High Contrast";
|
||||||
|
light = "VSCode Dark High Contrast";
|
||||||
};
|
};
|
||||||
|
icon_theme = {
|
||||||
|
dark = "Catppuccin Latte";
|
||||||
|
light = "Catppuccin Latte";
|
||||||
|
};
|
||||||
|
file_icons = true;
|
||||||
|
rulers = [80 120];
|
||||||
|
preferred_line_length = 120;
|
||||||
|
scroll_past_end = true;
|
||||||
|
cursor = {
|
||||||
|
blink_interval = 600;
|
||||||
|
smooth_scroll = true;
|
||||||
|
};
|
||||||
|
autosave = "on_focus_change";
|
||||||
|
auto_update = false;
|
||||||
|
buffer_font_family = "JetBrains Mono";
|
||||||
|
buffer_font_size = 22;
|
||||||
|
hide_mouse = "never";
|
||||||
|
minimap.show = "auto";
|
||||||
|
tabs = {
|
||||||
|
file_icons = true;
|
||||||
|
git_status = true;
|
||||||
|
activate_on_close = "neighbour";
|
||||||
|
show_close_button = "always";
|
||||||
|
};
|
||||||
|
toolbar = {
|
||||||
|
breadcrumbs = true;
|
||||||
|
quick_actions = true;
|
||||||
|
selections_menu = true;
|
||||||
|
agent_review = false;
|
||||||
|
code_actions = false;
|
||||||
|
};
|
||||||
|
format_on_save = "off";
|
||||||
|
use_autoclose = false;
|
||||||
|
git = {
|
||||||
|
git_gutter = "tracked_files";
|
||||||
|
inline_blame = {
|
||||||
|
enabled = true;
|
||||||
|
delay_ms = 5000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
indent_guides = {
|
||||||
|
enabled = true;
|
||||||
|
line_width = 1;
|
||||||
|
active_line_width = 1;
|
||||||
|
coloring = "fixed";
|
||||||
|
background_coloring = "disabled";
|
||||||
|
};
|
||||||
|
hour_format = "hour24";
|
||||||
|
remove_trailing_whitespace_on_save = true;
|
||||||
|
use_smartcase_search = true;
|
||||||
|
soft_wrap = "editor_width";
|
||||||
|
tab_size = 2;
|
||||||
|
telemetry = {
|
||||||
|
diagnostics = false;
|
||||||
|
metrics = false;
|
||||||
|
};
|
||||||
|
auto_fold_dirs = false;
|
||||||
|
scrollbar = {
|
||||||
|
show = "always";
|
||||||
|
};
|
||||||
|
unnecessary_code_fade = 0.0;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,8 +37,8 @@
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
defaultDesktopPack.enable = true;
|
defaultDesktopPack.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
zed.enable = true;
|
|
||||||
mapping.enable = true;
|
mapping.enable = true;
|
||||||
|
zed.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
gui = {
|
gui = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue