From 6c0d997b030ad1a1c0ac82156b3e8a5b63aa73a6 Mon Sep 17 00:00:00 2001 From: Lucas Chaim Date: Sat, 11 May 2024 18:41:23 -0300 Subject: [PATCH] feat: Add PHP debugger to work config --- traits/home-manager/cheina.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/traits/home-manager/cheina.nix b/traits/home-manager/cheina.nix index 6a6b85a..02b900e 100644 --- a/traits/home-manager/cheina.nix +++ b/traits/home-manager/cheina.nix @@ -36,4 +36,23 @@ cli.git.enable = false; cli.hishtory.enable = false; }; + + programs.helix.languages.language = [ + { + name = "php"; + language-id = "php"; + debugger = { + name = "vscode-php-debug"; + transport = "stdio"; + command = "node"; + args = [ "/home/cheina/.vscode/extensions/xdebug.php-debug-1.34.0/out/phpDebug.js" ]; + }; + debugger.templates = [{ + name = "Listen for Xdebug"; + request = "launch"; + completion = [ "ignored" ]; + args = { }; + }]; + } + ]; }