@@ -135,33 +135,28 @@ lib.nixvim.plugins.mkNeovimPlugin {
135
135
} ;
136
136
137
137
extraConfig = cfg : {
138
- warnings =
139
- lib . optionals
140
- (
138
+ warnings = lib . nixvim . mkWarnings "plugins.lazydev" [
139
+ {
140
+ when =
141
141
builtins . isBool cfg . settings . integrations . cmp
142
142
&& ! config . plugins . cmp . enable
143
- && cfg . settings . integrations . cmp
144
- )
145
- [ "Nixvim(plugins.lazydev): you have enabled nvim-cmp integration but plugins.cmp is not enabled." ]
146
- ++
147
- lib . optionals
148
- (
149
- builtins . isBool cfg . settings . integrations . lspconfig
150
- && ! config . plugins . lsp . enable
151
- && cfg . settings . integrations . lspconfig
152
- )
153
- [
154
- "Nixvim(plugins.lazydev): you have enabled lspconfig integration but plugins.lsp is not enabled."
155
- ]
156
- ++
157
- lib . optionals
158
- (
159
- builtins . isBool cfg . settings . integrations . coq
160
- && ! config . plugins . coq-nvim . enable
161
- && cfg . settings . integrations . coq
162
- )
163
- [
164
- "Nixvim(plugins.lazydev): you have enabled coq integration but plugins.coq-nvim is not enabled."
165
- ] ;
143
+ && cfg . settings . integrations . cmp ;
144
+ message = "You have enabled nvim-cmp integration but plugins.cmp is not enabled." ;
145
+ }
146
+ {
147
+ when =
148
+ builtins . isBool cfg . settings . integrations . lspconfig
149
+ && ! config . plugins . lsp . enable
150
+ && cfg . settings . integrations . lspconfig ;
151
+ message = "You have enabled lspconfig integration but plugins.lsp is not enabled." ;
152
+ }
153
+ {
154
+ when =
155
+ builtins . isBool cfg . settings . integrations . coq
156
+ && ! config . plugins . coq-nvim . enable
157
+ && cfg . settings . integrations . coq ;
158
+ message = "You have enabled coq integration but plugins.coq-nvim is not enabled." ;
159
+ }
160
+ ] ;
166
161
} ;
167
162
}
0 commit comments