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

plugins/dap-lldb: require dap to be enabled

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

View file

@ -1,4 +1,4 @@
{ lib, ... }:
{ config, lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "dap-lldb";
package = "nvim-dap-lldb";
@ -166,4 +166,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
Per programming language configuration.
'';
};
extraConfig = {
assertions = lib.nixvim.mkAssertions "plugins.dap-lldb" {
assertion = config.plugins.dap.enable;
message = ''
You have to enable `plugins.dap` to use `plugins.dap-lldb`.
'';
};
};
}

View file

@ -1,9 +1,11 @@
{
empty = {
plugins.dap.enable = true;
plugins.dap-lldb.enable = true;
};
defaults = {
plugins.dap.enable = true;
plugins.dap-lldb = {
enable = true;