mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
docs/mdbook: only include sub-options of visible options
E.g. rename aliases that target the `settings` option shouldn't show the `settings` sub-options under the `visible=false` alias.
This commit is contained in:
parent
9e6d690104
commit
76a8790764
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ let
|
||||||
|
|
||||||
removeWhitespace = builtins.replaceStrings [ " " ] [ "" ];
|
removeWhitespace = builtins.replaceStrings [ " " ] [ "" ];
|
||||||
|
|
||||||
getSubOptions = opts: path: removeUnwanted (opts.type.getSubOptions path);
|
getSubOptions =
|
||||||
|
opts: path: optionalAttrs (isVisible opts) (removeUnwanted (opts.type.getSubOptions path));
|
||||||
|
|
||||||
isVisible =
|
isVisible =
|
||||||
opts:
|
opts:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue