nvim-dap: add type for configurations

This commit is contained in:
Ching Pei Yang 2026-06-13 00:07:24 +02:00
commit 1c98cf4079
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -211,6 +211,29 @@
};
};
};
configurationType = submodule {
freeformType = attrsOf anything;
options = {
type = mkOption {
type = str;
description = "Which debug adapter to use";
};
request = mkOption {
type = str;
description = ''
Either `attach` or `launch`. Indicates whether the debug adapter
should launch a debugee or attach to one that is already running.
'';
};
name = mkOption {
type = str;
description = "A user-readable name for the configuration";
};
};
};
in {
options.vim.debugger.nvim-dap = {
enable = mkEnableOption "debugging via nvim-dap";
@ -248,7 +271,7 @@ in {
};
configurations = mkOption {
type = attrsOf (listOf anything);
type = attrsOf (listOf configurationType);
default = {};
description = ''
Mapping of filetype to list of possible `Configuration`.