mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-13 08:15:10 +00:00
nvim-dap: add type for configurations
This commit is contained in:
parent
f3466fe629
commit
1c98cf4079
1 changed files with 24 additions and 1 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue