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
711 B
Nix
Raw Normal View History

2024-09-17 22:22:45 -05:00
{
lib,
config,
pkgs,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
telescopeHelpers = import ./_helpers.nix { inherit lib config pkgs; };
in
telescopeHelpers.mkExtension {
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 = [ pkgs.manix ];
};
}