mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-13 16:25:04 +00:00
22 lines
441 B
Nix
22 lines
441 B
Nix
{
|
|
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";
|
|
};
|
|
};
|
|
}
|