2025-01-16 20:04:50 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
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"
|
|
|
|
"toml"
|
|
|
|
"nix"
|
|
|
|
"git_firefly"
|
|
|
|
];
|
|
|
|
userSettings =
|
|
|
|
let
|
|
|
|
theme = import ../../theme.nix;
|
|
|
|
font = "${theme.nerdFont} Nerd Font";
|
|
|
|
fontSize = 14;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
autosave = "on_focus_change";
|
|
|
|
base_keymap = "JetBrains";
|
|
|
|
ui_font_family = font;
|
|
|
|
buffer_font_family = font;
|
|
|
|
ui_font_size = fontSize;
|
|
|
|
buffer_font_size = fontSize;
|
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|