mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/dap (dapHelpers): allow dapHelpers.configurationType to be rawLua
This commit is contained in:
parent
21e8b57a11
commit
94dbc6acab
1 changed files with 23 additions and 21 deletions
|
@ -91,31 +91,33 @@ rec {
|
||||||
is used. A use-case for this is starting an adapter asynchronous.
|
is used. A use-case for this is starting an adapter asynchronous.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurationType = types.submodule {
|
configurationType = types.maybeRaw (
|
||||||
freeformType = types.attrs;
|
types.submodule {
|
||||||
|
freeformType = types.attrs;
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
type = lib.mkOption {
|
type = lib.mkOption {
|
||||||
description = "Which debug adapter to use.";
|
description = "Which debug adapter to use.";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
request = lib.mkOption {
|
request = lib.mkOption {
|
||||||
type = types.enum [
|
type = types.enum [
|
||||||
"attach"
|
"attach"
|
||||||
"launch"
|
"launch"
|
||||||
];
|
];
|
||||||
description = ''
|
description = ''
|
||||||
Indicates whether the debug adapter should launch a debuggee or attach to one that is already running.
|
Indicates whether the debug adapter should launch a debuggee or attach to one that is already running.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
name = lib.mkOption {
|
name = lib.mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "A user readable name for the configuration.";
|
description = "A user readable name for the configuration.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
};
|
);
|
||||||
|
|
||||||
mkSignOption = default: desc: {
|
mkSignOption = default: desc: {
|
||||||
text = lib.nixvim.defaultNullOpts.mkStr default desc;
|
text = lib.nixvim.defaultNullOpts.mkStr default desc;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue