mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-25 02:08:40 +02:00
plugins/telescope-manix: init
This commit is contained in:
parent
6cbf441c22
commit
650e204c07
3 changed files with 86 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
./frecency.nix
|
||||
./fzf-native.nix
|
||||
./fzy-native.nix
|
||||
./manix.nix
|
||||
./media-files.nix
|
||||
./ui-select.nix
|
||||
./undo.nix
|
||||
|
|
36
plugins/by-name/telescope/extensions/manix.nix
Normal file
36
plugins/by-name/telescope/extensions/manix.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue