From 502503add82b88f0fb7da5eb12455ab87b4633c5 Mon Sep 17 00:00:00 2001 From: h7x4 <h7x4@nani.wtf> Date: Sun, 8 Dec 2024 13:43:12 +0100 Subject: [PATCH] home/zed: re-enable --- home/home.nix | 2 +- home/programs/zed/default.nix | 35 +++++++++++++++++------------------ 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/home/home.nix b/home/home.nix index bc29f5d..79adc2d 100644 --- a/home/home.nix +++ b/home/home.nix @@ -62,7 +62,7 @@ in { ./programs/taskwarrior.nix ./programs/vscode ./programs/zathura.nix - # ./programs/zed + ./programs/zed ./services/copyq.nix ./services/dunst.nix diff --git a/home/programs/zed/default.nix b/home/programs/zed/default.nix index f8ff3c6..59dcff0 100644 --- a/home/programs/zed/default.nix +++ b/home/programs/zed/default.nix @@ -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"; + }; }; };