File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 26
26
'' ;
27
27
}
28
28
] ;
29
+ warnings =
30
+ let
31
+ ignoredPackages = [
32
+ # removed
33
+ "treesitter-playground"
34
+ # renamed
35
+ "surround"
36
+ "null-ls"
37
+ "wilder-nvim"
38
+ ] ;
39
+
40
+ pluginsWithLazyLoad = builtins . filter (
41
+ x :
42
+ ! ( lib . elem x ignoredPackages )
43
+ && lib . hasAttr "lazyLoad" config . plugins . ${ x }
44
+ && config . plugins . ${ x } . lazyLoad . enable
45
+ ) ( builtins . attrNames config . plugins ) ;
46
+ count = builtins . length pluginsWithLazyLoad ;
47
+ in
48
+ lib . optionals ( count > 0 && ! config . plugins . lz-n . enable ) [
49
+ ''
50
+ You have enabled lazy loading support for the following plugins but have not enabled a lazy loading provider.
51
+ ${ lib . concatImapStringsSep "\n " ( i : x : "${ toString i } . plugins.${ x } " ) pluginsWithLazyLoad }
52
+
53
+ Currently supported lazy providers:
54
+ - lz-n
55
+ ''
56
+ ] ;
29
57
} ;
30
58
}
You can’t perform that action at this time.
0 commit comments