1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-28 13:11:04 +01:00

plugins/dap-virtual-text: require dap to be enabled

Add assertion requiring `plugins.dap` to be enabled when using
`plugins.dap-virtual-text`.
This commit is contained in:
Austin Horstman 2025-11-25 23:17:12 -06:00 committed by Gaétan Lepage
parent 47020dca77
commit 266556b918
2 changed files with 12 additions and 0 deletions

View file

@ -1,4 +1,5 @@
{
config,
lib,
...
}:
@ -63,6 +64,15 @@ lib.nixvim.plugins.mkNeovimPlugin {
'';
};
extraConfig = {
assertions = lib.nixvim.mkAssertions "plugins.dap-virtual-text" {
assertion = config.plugins.dap.enable;
message = ''
You have to enable `plugins.dap` to use `plugins.dap-virtual-text`.
'';
};
};
# NOTE: Renames added in https://github.com/nix-community/nixvim/pull/2897 (2025-01-26)
imports = [ ./deprecations.nix ];
}

View file

@ -1,9 +1,11 @@
{
empty = {
plugins.dap.enable = true;
plugins.dap-virtual-text.enable = true;
};
default = {
plugins.dap.enable = true;
plugins.dap-virtual-text = {
enable = true;