all repos — searchix @ bc8f40ec805cbc9771efe0992bbb666d46793f0e

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: show top-level option set as a separate facet

Alin
commit

bc8f40ec805cbc9771efe0992bbb666d46793f0e

parent

ebb5e265a22f90eee6929971502451fc0f4bb5d2

1 file changed, 6 insertions(+), 0 deletions(-)

changed files
M internal/importer/options.gointernal/importer/options.go
@@ -177,6 +177,11 @@ if len(loc) > 1 {
parents = strings.Join(loc[:len(loc)-1], ".") } + var optionSet string + if len(loc) >= 1 { + optionSet = loc[0] + } + // log.Debug("sending option", "name", kv.Key) if !yield(nix.Option{ Name: kv.Key,
@@ -188,6 +193,7 @@ Example: exampleDocs,
RelatedPackages: nixdocs.Markdown(relatedPackages), Loc: loc, Parents: parents, + OptionSet: optionSet, Type: optType, ImportedAt: time.Now(), }) {