File tree Expand file tree Collapse file tree 18 files changed +29
-64
lines changed Expand file tree Collapse file tree 18 files changed +29
-64
lines changed Original file line number Diff line number Diff line change @@ -48,18 +48,17 @@ lib.nixvim.plugins.mkNeovimPlugin {
48
48
warnings =
49
49
let
50
50
copilot-lua-cfg = config . plugins . copilot-lua . settings ;
51
- isEnabled = b : builtins . isBool b && b ;
52
51
in
53
52
lib . nixvim . mkWarnings "plugins.blink-cmp-copilot" [
54
53
{
55
- when = isEnabled copilot-lua-cfg . suggestion . enabled ;
54
+ when = copilot-lua-cfg . suggestion . enabled == true ;
56
55
message = ''
57
56
It is recommended to disable copilot's `suggestion` module, as it can interfere with
58
57
completions properly appearing in blink-cmp-copilot.
59
58
'' ;
60
59
}
61
60
{
62
- when = isEnabled copilot-lua-cfg . panel . enabled ;
61
+ when = copilot-lua-cfg . panel . enabled == true ;
63
62
message = ''
64
63
It is recommended to disable copilot's `panel` module, as it can interfere with completions
65
64
properly appearing in blink-cmp-copilot.
Original file line number Diff line number Diff line change @@ -58,18 +58,17 @@ lib.nixvim.plugins.mkNeovimPlugin {
58
58
warnings =
59
59
let
60
60
copilot-lua-cfg = config . plugins . copilot-lua . settings ;
61
- isEnabled = b : ( lib . isBool b && b ) ;
62
61
in
63
62
lib . nixvim . mkWarnings "plugins.copilot-cmp" [
64
63
{
65
- when = isEnabled copilot-lua-cfg . suggestion . enabled ;
64
+ when = copilot-lua-cfg . suggestion . enabled == true ;
66
65
message = ''
67
66
It is recommended to disable copilot's `suggestion` module, as it can interfere with
68
67
completions properly appearing in copilot-cmp.
69
68
'' ;
70
69
}
71
70
{
72
- when = isEnabled copilot-lua-cfg . panel . enabled ;
71
+ when = copilot-lua-cfg . panel . enabled == true ;
73
72
message = ''
74
73
It is recommended to disable copilot's `panel` module, as it can interfere with completions
75
74
properly appearing in copilot-cmp.
Original file line number Diff line number Diff line change @@ -471,10 +471,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
471
471
472
472
extraConfig = cfg : {
473
473
warnings = lib . nixvim . mkWarnings "plugins.fidget" {
474
- when =
475
- ( builtins . isBool cfg . settings . integration . nvim-tree . enable )
476
- && cfg . settings . integration . nvim-tree . enable
477
- && ! config . plugins . nvim-tree . enable ;
474
+ when = ( cfg . settings . integration . nvim-tree . enable == true ) && ! config . plugins . nvim-tree . enable ;
478
475
479
476
message = ''
480
477
You have set `plugins.fidget.settings.integrations.nvim-tree.enable` to true but have not enabled `plugins.nvim-tree`.
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
22
22
warnings = lib . nixvim . mkWarnings "plugins.flutter-tools" {
23
23
when =
24
24
( cfg . settings ? debugger . enable )
25
- && ( lib . isBool cfg . settings . debugger . enable )
26
- && cfg . settings . debugger . enable
25
+ && ( cfg . settings . debugger . enable == true )
27
26
&& ( ! config . plugins . dap . enable ) ;
28
27
29
28
message = ''
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
104
104
105
105
extraConfig = cfg : {
106
106
warnings = lib . nixvim . mkWarnings "plugins.gitsigns" {
107
- when = ( lib . isBool cfg . settings . trouble && cfg . settings . trouble ) && ! config . plugins . trouble . enable ;
107
+ when = ( cfg . settings . trouble == true ) && ! config . plugins . trouble . enable ;
108
108
109
109
message = ''
110
110
You have enabled `plugins.gitsigns.settings.trouble` but `plugins.trouble.enable` is `false`.
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
19
19
warnings = lib . nixvim . mkWarnings "plugins.glance" {
20
20
when =
21
21
cfg . settings ? use_trouble_qf
22
- && builtins . isBool cfg . settings . use_trouble_qf
23
- && cfg . settings . use_trouble_qf
22
+ && ( cfg . settings . use_trouble_qf == true )
24
23
&& ! config . plugins . trouble . enable ;
25
24
26
25
message = ''
Original file line number Diff line number Diff line change @@ -137,24 +137,15 @@ lib.nixvim.plugins.mkNeovimPlugin {
137
137
extraConfig = cfg : {
138
138
warnings = lib . nixvim . mkWarnings "plugins.lazydev" [
139
139
{
140
- when =
141
- builtins . isBool cfg . settings . integrations . cmp
142
- && ! config . plugins . cmp . enable
143
- && cfg . settings . integrations . cmp ;
140
+ when = ( cfg . settings . integrations . cmp == true ) && ! config . plugins . cmp . enable ;
144
141
message = "You have enabled nvim-cmp integration but plugins.cmp is not enabled." ;
145
142
}
146
143
{
147
- when =
148
- builtins . isBool cfg . settings . integrations . lspconfig
149
- && ! config . plugins . lsp . enable
150
- && cfg . settings . integrations . lspconfig ;
144
+ when = ( cfg . settings . integrations . lspconfig == true ) && ! config . plugins . lsp . enable ;
151
145
message = "You have enabled lspconfig integration but plugins.lsp is not enabled." ;
152
146
}
153
147
{
154
- when =
155
- builtins . isBool cfg . settings . integrations . coq
156
- && ! config . plugins . coq-nvim . enable
157
- && cfg . settings . integrations . coq ;
148
+ when = ( cfg . settings . integrations . coq == true ) && ! config . plugins . coq-nvim . enable ;
158
149
message = "You have enabled coq integration but plugins.coq-nvim is not enabled." ;
159
150
}
160
151
] ;
Original file line number Diff line number Diff line change 236
236
! (
237
237
# leanls lsp server is disabled in nvim-lspconfig
238
238
config . plugins . lsp . servers . leanls . enable
239
- # lsp is not (!) disabled in the lean.nvim plugin
240
- && ! (
241
- # lsp is explicitly set to `false`.
242
- ( isBool cfg . lsp . enable ) && ! cfg . lsp . enable
243
- )
239
+ # lsp is not explicitly disabled in the lean.nvim plugin
240
+ && ( cfg . lsp . enable != false )
244
241
) ;
245
242
message = ''
246
243
You have not explicitly set `plugins.lean.lsp` to `false` while having `plugins.lsp.servers.leanls.enable` set to `true`.
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
22
22
warnings = lib . nixvim . mkWarnings "plugins.lir" {
23
23
when =
24
24
( cfg . settings ? devicons . enable )
25
- && ( lib . isBool cfg . settings . devicons . enable )
26
- && cfg . settings . devicons . enable
25
+ && ( cfg . settings . devicons . enable == true )
27
26
&& ( ! config . plugins . web-devicons . enable ) ;
28
27
29
28
message = ''
Original file line number Diff line number Diff line change 469
469
} ;
470
470
warnings = lib . nixvim . mkWarnings "plugins.ltex-extra" {
471
471
# https://nvimdev.github.io/lspsaga/implement/#default-options
472
- when =
473
- ( isBool cfg . implement . enable && cfg . implement . enable )
474
- && ( isBool cfg . symbolInWinbar . enable && ! cfg . symbolInWinbar . enable ) ;
472
+ when = ( cfg . implement . enable == true ) && ( cfg . symbolInWinbar . enable == false ) ;
475
473
476
474
message = ''
477
475
You have enabled the `implement` module but it requires `symbolInWinbar` to be enabled.
You can’t perform that action at this time.
0 commit comments