mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 18:58:43 +02:00
Allow importing `mkExtension` without needing to supply any dependencies. All dependencies can be accessed via module args anyway.
36 lines
662 B
Nix
36 lines
662 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.nixvim) defaultNullOpts;
|
|
|
|
mkExtension = import ./_mk-extension.nix;
|
|
in
|
|
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 = [ cfg.manixPackage ];
|
|
};
|
|
}
|