From bc9494c01aab9442dd50f89c04456381242d3ca6 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 20 Dec 2024 15:27:10 -0800 Subject: [PATCH] Add Zed editor. Configured with Nix LSP and Catppuccin Mocha --- dotfiles/home-manager/desktop/apps/zed.nix | 15 +++++++++++++++ dotfiles/home-manager/desktop/home.nix | 1 + 2 files changed, 16 insertions(+) create mode 100644 dotfiles/home-manager/desktop/apps/zed.nix diff --git a/dotfiles/home-manager/desktop/apps/zed.nix b/dotfiles/home-manager/desktop/apps/zed.nix new file mode 100644 index 00000000..607b1d08 --- /dev/null +++ b/dotfiles/home-manager/desktop/apps/zed.nix @@ -0,0 +1,15 @@ +{ ... }: { + programs.zed-editor = { + # https://mynixos.com/home-manager/options/programs.zed-editor + enable = true; + extensions = [ "Nix" "Catppuccin" ]; + userSettings = { + languages."Nix"."language_servers" = [ "!nil" "nixd" ]; + theme = { + mode = "system"; + dark = "Catppuccin Mocha"; + light = "Catppuccin Mocha"; + }; + }; + }; +} diff --git a/dotfiles/home-manager/desktop/home.nix b/dotfiles/home-manager/desktop/home.nix index 3fee252d..ed2abb1c 100644 --- a/dotfiles/home-manager/desktop/home.nix +++ b/dotfiles/home-manager/desktop/home.nix @@ -6,6 +6,7 @@ ./configuration/keys.nix ./configuration/defaultApps.nix ./configuration/mangohud.nix + ./apps/zed.nix ./apps/browser.nix ./apps/discord.nix ./apps/obs-studio.nix