mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 02:34:34 +02:00
treewide: use mkWarnings where possible
This commit is contained in:
parent
abba4af10b
commit
12e658eca8
34 changed files with 309 additions and 225 deletions
|
@ -470,16 +470,16 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
warnings =
|
||||
lib.optionals
|
||||
(
|
||||
(builtins.isBool cfg.settings.integration.nvim-tree.enable)
|
||||
&& cfg.settings.integration.nvim-tree.enable
|
||||
&& !config.plugins.nvim-tree.enable
|
||||
)
|
||||
[
|
||||
"Nixvim(plugins.fidget): You have set `plugins.fidget.settings.integrations.nvim-tree.enable` to true but have not enabled `plugins.nvim-tree`."
|
||||
];
|
||||
warnings = lib.nixvim.mkWarnings "plugins.fidget" {
|
||||
when =
|
||||
(builtins.isBool cfg.settings.integration.nvim-tree.enable)
|
||||
&& cfg.settings.integration.nvim-tree.enable
|
||||
&& !config.plugins.nvim-tree.enable;
|
||||
|
||||
message = ''
|
||||
You have set `plugins.fidget.settings.integrations.nvim-tree.enable` to true but have not enabled `plugins.nvim-tree`.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
inherit (import ./deprecations.nix { inherit lib; }) imports optionsRenamedToSettings;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue