1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-02 15:11:05 +01:00
nixvim/plugins/by-name/dap-view/default.nix
Austin Horstman 7fe6951bf8 plugins/dap-view: require dap to be enabled
Add assertion requiring `plugins.dap` to be enabled when using
`plugins.dap-view`.
2025-11-26 09:12:28 +00:00

36 lines
895 B
Nix

{ config, lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "dap-view";
moduleName = "dap-view";
package = "nvim-dap-view";
description = "Visualize debugging sessions in Neovim.";
maintainers = [ lib.maintainers.khaneliman ];
settingsExample = {
winbar = {
controls.enabled = true;
};
windows.terminal = {
position = "right";
start_hidden = true;
};
};
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 = [
"dap-repl"
"dap-view"
"dap-view-term"
];
};
}