home/zed: re-enable

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-08 13:43:12 +01:00
parent e4fe666d29
commit 502503add8
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 18 additions and 19 deletions

View File

@ -62,7 +62,7 @@ in {
./programs/taskwarrior.nix
./programs/vscode
./programs/zathura.nix
# ./programs/zed
./programs/zed
./services/copyq.nix
./services/dunst.nix

View File

@ -1,25 +1,24 @@
{ config, pkgs, unstable-pkgs, lib, ... }:
{ pkgs, ... }:
{
home.packages = with unstable-pkgs; [ zed-editor ];
programs.zed-editor = {
enable = true;
userSettings = {
autosave = "off";
buffer_font_family = "Fira Code";
load_direnv = "shell_hook";
format_on_save = "off";
xdg.configFile."zed/settings.json".source = let
format = pkgs.formats.json { };
in format.generate "zed-settings.json" {
autosave = "off";
buffer_font_family = "Fira Code";
load_direnv = "shell_hook";
format_on_save = "off";
telemetry = {
diagnostics = false;
metrics = false;
};
telemetry = {
diagnostics = false;
metrics = false;
};
vim_mode = true;
vim_mode = true;
theme = {
mod = "dark";
dark = "monokai Classic";
theme = {
mod = "dark";
dark = "monokai Classic";
};
};
};