nix-community.nixvim/plugins/by-name/telescope/extensions/manix.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
662 B
Nix
Raw Normal View History

2024-09-17 22:22:45 -05:00
{
lib,
pkgs,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
2024-10-06 10:05:31 -05:00
mkExtension = import ./_mk-extension.nix;
2024-09-17 22:22:45 -05:00
in
mkExtension {
2024-09-17 22:22:45 -05:00
name = "manix";
package = "telescope-manix";
settingsOptions = {
manix_args = defaultNullOpts.mkListOf lib.types.str [ ] "CLI arguments to pass to manix.";
cword = defaultNullOpts.mkBool false ''
Set to `true` if you want to use the current word as the search query.
'';
};
settingsExample = {
cword = true;
};
extraOptions = {
manixPackage = lib.mkPackageOption pkgs "manix" {
nullable = true;
};
};
extraConfig = cfg: {
extraPackages = [ cfg.manixPackage ];
2024-09-17 22:22:45 -05:00
};
}