mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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
4958ac06d3
commit
1fdbf40c17
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ let
|
|||
|
||||
removeWhitespace = builtins.replaceStrings [ " " ] [ "" ];
|
||||
|
||||
getSubOptions = opts: path: removeUnwanted (opts.type.getSubOptions path);
|
||||
getSubOptions =
|
||||
opts: path: optionalAttrs (isVisible opts) (removeUnwanted (opts.type.getSubOptions path));
|
||||
|
||||
isVisible =
|
||||
opts:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue