File tree Expand file tree Collapse file tree 2 files changed +9
-28
lines changed Expand file tree Collapse file tree 2 files changed +9
-28
lines changed Original file line number Diff line number Diff line change 114
114
internal = true ;
115
115
} ;
116
116
117
- lazyLoad = lib . mkOption {
118
- default = {
119
- enable = false ;
120
- } ;
121
- description = ''
122
- Lazy load configuration settings.
123
- '' ;
124
- type = lib . types . submodule {
125
- options = {
126
- enable = lib . mkOption {
127
- default = false ;
128
- type = lib . types . bool ;
129
- description = ''
130
- Whether to lazy load the plugin.
131
-
132
- If you enable this, the plugin's lua configuration will need to be manually loaded by other means.
133
-
134
- A usage would be passing the plugin's luaConfig to the `plugins.lz-n.plugins` configuration.
135
- '' ;
136
- } ;
137
- } ;
138
- } ;
117
+ lazyLoad = lib . nixvim . mkLazyLoadOption {
118
+ inherit originalName ;
119
+ lazyLoadDefaults = (
120
+ lib . optionalAttrs ( isColorscheme && colorscheme != null ) { inherit colorscheme ; }
121
+ ) ;
139
122
} ;
140
123
}
141
124
// lib . optionalAttrs hasSettings {
Original file line number Diff line number Diff line change @@ -412,13 +412,11 @@ rec {
412
412
Equivalence: lz.n => ft; lazy.nvim => ft
413
413
'' ;
414
414
415
- keys =
416
- mkNullable ( types . listOf lib . nixvim . keymaps . mapOptionSubmodule ) ( lazyLoadDefaults . keys or null )
417
- ''
418
- Lazy-load on key mapping. Use the same format as `config.keymaps`.
415
+ keys = mkListOf ( types . attrsOf types . anything ) ( lazyLoadDefaults . keys or null ) ''
416
+ Lazy-load on key mapping.
419
417
420
- Equivalence: lz.n => keys; lazy.nvim => keys
421
- '' ;
418
+ Equivalence: lz.n => keys; lazy.nvim => keys
419
+ '' ;
422
420
423
421
colorscheme = mkNullable triggerType ( lazyLoadDefaults . colorscheme or null ) ''
424
422
Lazy-load on colorscheme.
You can’t perform that action at this time.
0 commit comments