Skip to content

Commit 5990efb

Browse files
committed
docs(wrapperModules.neovim): 1 more tip
1 parent e5efb15 commit 5990efb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

wrapperModules/n/neovim/post_desc.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ local nixInfo = require(vim.g.nix_info_plugin_name)
4545
local cat_is_present = nixInfo(false, "info", "cats", "<specs_attribute_name>")
4646
```
4747

48+
You could also do similar with
49+
50+
```nix
51+
options.settings.cats = lib.mkOption {
52+
readOnly = true;
53+
type = lib.types.attrsOf lib.types.raw;
54+
default = builtins.mapAttrs (_: v: v.enable) config.specs;
55+
};
56+
# nixInfo(false, "settings", "cats", "<specs_attribute_name>")
57+
```
58+
4859
---
4960

5061
- lazy loading

0 commit comments

Comments
 (0)