33 lines
737 B
Nix
33 lines
737 B
Nix
{
|
|
programs.zed-editor = {
|
|
enable = true;
|
|
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 = {
|
|
mode = "system";
|
|
light = "Catppuccin Frappé";
|
|
dark = "Catppuccin Mocha";
|
|
};
|
|
lsp.nil.initialization_options.formatting.command = [ "nixfmt" ];
|
|
};
|
|
};
|
|
}
|