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

plugins/dap-view: require dap to be enabled

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

View file

@ -1,4 +1,4 @@
{ lib, ... }:
{ config, lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "dap-view";
moduleName = "dap-view";
@ -18,6 +18,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
};
extraConfig = {
assertions = lib.nixvim.mkAssertions "plugins.dap-view" {
assertion = config.plugins.dap.enable;
message = ''
You have to enable `plugins.dap` to use `plugins.dap-view`.
'';
};
# Compatibility with lualine module.
# Broken UI otherwise https://github.com/igorlfs/nvim-dap-view/issues/36
plugins.lualine.settings.options.disabled_filetypes.winbar = [

View file

@ -1,9 +1,11 @@
{
empty = {
plugins.dap.enable = true;
plugins.dap-view.enable = true;
};
defaults = {
plugins.dap.enable = true;
plugins.dap-view = {
enable = true;
@ -154,6 +156,7 @@
};
example = {
plugins.dap.enable = true;
plugins.dap-view = {
enable = true;