nix-managed-macbook/programs/zed.nix

75 lines
1.4 KiB
Nix
Raw Normal View History

2024-11-26 20:33:25 +05:30
{
inputs,
config,
pkgs,
...
}:
{
programs.zed-editor = {
enable = true;
extensions = [
"assembly"
"brainfuck"
"ini"
"just"
"nix"
"roc"
"haskell"
"toml"
];
userSettings = {
theme = "Summercamp";
telemetry = {
diagnostic = false;
metrics = false;
};
buffer_font_family = "Zed Plex Mono";
ui_font_size = 16;
buffer_font_size = 12;
confirm_quit = true;
cursor_blink = false;
tab_size = 2;
terminal = {
font_family = "Zed Plex Mono";
shell = {
program = "/etc/profiles/per-user/abhinav/bin/fish";
};
copy_on_select = true;
};
indent_guides = {
enabled = true;
coloring = "indent_aware";
};
wrap_guides = [ 100 ];
languages = {
Haskell = {
tab_size = 2;
format_on_save = "on";
wrap_guides = [ 100 ];
};
Nix = {
tab_size = 2;
};
};
lsp = {
hls = {
initialization_options = {
sessionLoading = "multiComponent";
};
};
nixd = {
formatting = {
command = [
"nixfmt"
"-s"
"-w"
"100"
];
};
};
};
};
};
}