From c046f4ae176a5c6989212f46eda70bea6e026bda Mon Sep 17 00:00:00 2001 From: Jo Date: Tue, 11 Nov 2025 13:24:24 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Move=20php=20packages=20to=20zed?= =?UTF-8?q?=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homes/x86_64-linux/jo/default.nix | 3 --- modules/home/apps/zed/default.nix | 21 ++++++++++++++++++++- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/homes/x86_64-linux/jo/default.nix b/homes/x86_64-linux/jo/default.nix index a0b2d08..2f5bac6 100644 --- a/homes/x86_64-linux/jo/default.nix +++ b/homes/x86_64-linux/jo/default.nix @@ -65,9 +65,6 @@ attic-client ## PHP/Shopware - php84 - php84Packages.composer - pretty-php shopware-cli ]; diff --git a/modules/home/apps/zed/default.nix b/modules/home/apps/zed/default.nix index c1cc934..22a9e00 100644 --- a/modules/home/apps/zed/default.nix +++ b/modules/home/apps/zed/default.nix @@ -58,7 +58,7 @@ in }; hard_tabs = true; - tab_size = 2; + tab_size = 4; soft_wrap = "preferred_line_length"; ### Language specific configurations @@ -74,6 +74,20 @@ in arguments = [ "--quiet" ]; }; }; + + tab_size = 2; + }; + PHP = { + language_servers = [ + "phpactor" + "!intelephense" + "!tailwind-language-server" + ]; + formatter = { + external = { + command = "pretty-php"; + }; + }; }; }; @@ -126,6 +140,11 @@ in ### Python python3Packages.python-lsp-server + + ### PHP + php + phpPackages.composer + pretty-php ]; }; };