{ lib, pkgs, config, ... }: let inherit (lib.modules) mkIf; inherit (lib.options) mkEnableOption; cfg = config.vim.debugger.nvim-dap.presets.lldb; in { options.vim.debugger.nvim-dap.presets.lldb = { enable = mkEnableOption "LLDB debugger using lldb-dap"; }; config.vim.debugger.nvim-dap.adapters = mkIf cfg.enable { lldb = { type = "executable"; command = "${pkgs.lldb}/bin/lldb-dap"; }; }; }