{ lib, ... }: { enable = true; adapters = { executables.qemu = { command = "gdb"; args = [ "-i" "dap" ]; }; }; configurations = { zig = [ { name = "Qemu"; type = "qemu"; request = "attach"; program = lib.nixvim.mkRaw '' function() return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/zig-out/bin/", "file") end ''; target = "tcp:localhost:1234"; stopOnEntry = true; gdbTarget = "tcp:localhost:1234"; } ]; }; }