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:
parent
08c8af8c01
commit
47020dca77
2 changed files with 12 additions and 1 deletions
|
|
@ -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`.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.dap.enable = true;
|
||||
plugins.dap-lldb.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.dap.enable = true;
|
||||
plugins.dap-lldb = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue