mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-28 21:21:03 +01:00
plugins/dap-ui: require dap to be enabled
Add assertion requiring `plugins.dap` to be enabled when using `plugins.dap-ui`.
This commit is contained in:
parent
4425fc6d62
commit
08c8af8c01
2 changed files with 12 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
|
@ -193,6 +194,15 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
'';
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
assertions = lib.nixvim.mkAssertions "plugins.dap-ui" {
|
||||
assertion = config.plugins.dap.enable;
|
||||
message = ''
|
||||
You have to enable `plugins.dap` to use `plugins.dap-ui`.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# NOTE: Renames added in https://github.com/nix-community/nixvim/pull/2897 (2025-01-26)
|
||||
deprecateExtraOptions = true;
|
||||
imports = [ ./deprecations.nix ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue