mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-28 13:11:04 +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:
parent
266556b918
commit
7fe6951bf8
2 changed files with 11 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, ... }:
|
{ config, lib, ... }:
|
||||||
lib.nixvim.plugins.mkNeovimPlugin {
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
name = "dap-view";
|
name = "dap-view";
|
||||||
moduleName = "dap-view";
|
moduleName = "dap-view";
|
||||||
|
|
@ -18,6 +18,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = {
|
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.
|
# Compatibility with lualine module.
|
||||||
# Broken UI otherwise https://github.com/igorlfs/nvim-dap-view/issues/36
|
# Broken UI otherwise https://github.com/igorlfs/nvim-dap-view/issues/36
|
||||||
plugins.lualine.settings.options.disabled_filetypes.winbar = [
|
plugins.lualine.settings.options.disabled_filetypes.winbar = [
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
{
|
{
|
||||||
empty = {
|
empty = {
|
||||||
|
plugins.dap.enable = true;
|
||||||
plugins.dap-view.enable = true;
|
plugins.dap-view.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
plugins.dap.enable = true;
|
||||||
plugins.dap-view = {
|
plugins.dap-view = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
@ -154,6 +156,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
|
plugins.dap.enable = true;
|
||||||
plugins.dap-view = {
|
plugins.dap-view = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue