mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 03:34:31 +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
|
@ -45,14 +45,16 @@ in
|
|||
) (builtins.attrNames config.plugins);
|
||||
count = builtins.length pluginsWithLazyLoad;
|
||||
in
|
||||
lib.optionals (count > 0 && !config.plugins.lz-n.enable) [
|
||||
''
|
||||
lib.nixvim.mkWarnings "lazy loading" {
|
||||
when = count > 0 && !config.plugins.lz-n.enable;
|
||||
|
||||
message = ''
|
||||
You have enabled lazy loading support for the following plugins but have not enabled a lazy loading provider.
|
||||
${lib.concatImapStringsSep "\n" (i: x: "${toString i}. plugins.${x}") pluginsWithLazyLoad}
|
||||
|
||||
Currently supported lazy providers:
|
||||
- lz-n
|
||||
''
|
||||
];
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue