2025-03-09 11:25:26 +01:00
|
|
|
{ pkgs, theme, ... }:
|
2025-01-16 20:04:50 +01:00
|
|
|
|
2025-01-11 20:59:51 +01:00
|
|
|
{
|
|
|
|
programs.zed-editor = {
|
|
|
|
enable = true;
|
2025-01-16 20:04:50 +01:00
|
|
|
package = pkgs.unstable.zed-editor;
|
2025-01-11 20:59:51 +01:00
|
|
|
extensions = [
|
|
|
|
"html"
|
|
|
|
"catppuccin"
|
2025-02-09 17:48:45 +01:00
|
|
|
"catppuccin-icons"
|
2025-01-11 20:59:51 +01:00
|
|
|
"toml"
|
|
|
|
"nix"
|
2025-02-09 17:48:45 +01:00
|
|
|
"git-firefly"
|
2025-02-13 21:52:01 +01:00
|
|
|
"just"
|
2025-01-11 20:59:51 +01:00
|
|
|
];
|
|
|
|
userSettings =
|
|
|
|
let
|
|
|
|
font = "${theme.nerdFont} Nerd Font";
|
|
|
|
fontSize = 14;
|
|
|
|
in
|
|
|
|
{
|
2025-02-18 21:56:34 +01:00
|
|
|
assistant = {
|
|
|
|
default_model = {
|
|
|
|
provider = "ollama";
|
|
|
|
model = "deepseek-r1:8b";
|
|
|
|
};
|
|
|
|
version = "2";
|
|
|
|
};
|
2025-01-11 20:59:51 +01:00
|
|
|
autosave = "on_focus_change";
|
2025-04-18 19:49:14 +02:00
|
|
|
auto_update = false;
|
2025-01-11 20:59:51 +01:00
|
|
|
base_keymap = "JetBrains";
|
|
|
|
buffer_font_family = font;
|
2025-02-18 21:56:34 +01:00
|
|
|
features = {
|
2025-03-09 11:25:26 +01:00
|
|
|
edit_completion_provider = "zed";
|
2025-02-18 21:56:34 +01:00
|
|
|
};
|
2025-04-18 19:49:14 +02:00
|
|
|
icon_theme = {
|
|
|
|
mode = theme.mode;
|
|
|
|
light = "Catppuccin Latte";
|
|
|
|
dark = "Catppuccin Mocha";
|
|
|
|
};
|
2025-02-09 17:48:45 +01:00
|
|
|
ui_font_family = font;
|
2025-01-11 20:59:51 +01:00
|
|
|
ui_font_size = fontSize;
|
|
|
|
buffer_font_size = fontSize;
|
2025-02-09 17:48:45 +01:00
|
|
|
tabs = {
|
|
|
|
file_icons = true;
|
|
|
|
git_status = true;
|
|
|
|
};
|
2025-01-11 20:59:51 +01:00
|
|
|
theme = {
|
2025-01-12 17:38:51 +01:00
|
|
|
mode = theme.mode;
|
|
|
|
light = "Catppuccin Latte";
|
2025-01-11 20:59:51 +01:00
|
|
|
dark = "Catppuccin Mocha";
|
|
|
|
};
|
|
|
|
lsp.nil.initialization_options.formatting.command = [ "nixfmt" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|