Skip to content

Commit e5efb15

Browse files
authored
refactor(wrapperModules.neovim): refactor check for later clarity (#211)
1 parent 47e71cc commit e5efb15

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

wrapperModules/n/neovim/default-config.nix

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,15 @@
187187
isGram =
188188
v.value.collateGrammars or false
189189
&& v.value.data or null != null
190-
&& !builtins.isString v.value.data
191190
&& (
192191
v.value.data.passthru.isTreesitterGrammar or false == true
193192
|| v.value.data.passthru.isTreesitterQuery or false == true
194-
||
195-
builtins.match "^vimplugin-(nvim-)?treesitter-(grammar|queries)-.*" (lib.getName v.value.data)
196-
!= null
193+
|| (
194+
!builtins.isString v.value.data
195+
&&
196+
builtins.match "^vimplugin-(nvim-)?treesitter-(grammar|queries)-.*" (lib.getName v.value.data)
197+
!= null
198+
)
197199
);
198200
in
199201
{

0 commit comments

Comments
 (0)