mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-30 22:59:31 +02:00
treewide: use boolean comparison to simplify the code base
This commit is contained in:
parent
5066c71549
commit
e908e344f4
18 changed files with 29 additions and 64 deletions
|
@ -471,10 +471,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
extraConfig = cfg: {
|
||||
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;
|
||||
when = (cfg.settings.integration.nvim-tree.enable == true) && !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`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue