treewide: use boolean comparison to simplify the code base

This commit is contained in:
Gaetan Lepage 2025-01-29 17:42:54 +01:00
parent 5066c71549
commit e908e344f4
18 changed files with 29 additions and 64 deletions

View file

@ -22,8 +22,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
warnings = lib.nixvim.mkWarnings "plugins.lir" {
when =
(cfg.settings ? devicons.enable)
&& (lib.isBool cfg.settings.devicons.enable)
&& cfg.settings.devicons.enable
&& (cfg.settings.devicons.enable == true)
&& (!config.plugins.web-devicons.enable);
message = ''