mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
modules/dependencies: add manix
This commit is contained in:
parent
b4b81587f3
commit
961a96b537
3 changed files with 22 additions and 15 deletions
|
@ -21,6 +21,7 @@ let
|
|||
go.default = "go";
|
||||
lean.default = "lean4";
|
||||
ledger.default = "ledger";
|
||||
manix.default = "manix";
|
||||
nodejs = {
|
||||
default = "nodejs";
|
||||
example = "pkgs.nodejs_22";
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -12,6 +11,18 @@ mkExtension {
|
|||
name = "manix";
|
||||
package = "telescope-manix";
|
||||
|
||||
imports = [
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = [
|
||||
"telescope"
|
||||
"extensions"
|
||||
"manix"
|
||||
];
|
||||
packageName = "manix";
|
||||
})
|
||||
];
|
||||
|
||||
settingsOptions = {
|
||||
manix_args = defaultNullOpts.mkListOf lib.types.str [ ] "CLI arguments to pass to manix.";
|
||||
|
||||
|
@ -24,13 +35,7 @@ mkExtension {
|
|||
cword = true;
|
||||
};
|
||||
|
||||
extraOptions = {
|
||||
manixPackage = lib.mkPackageOption pkgs "manix" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [ cfg.manixPackage ];
|
||||
extraConfig = {
|
||||
dependencies.manix.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -40,14 +40,15 @@
|
|||
};
|
||||
|
||||
no-packages = {
|
||||
plugins.telescope = {
|
||||
plugins = {
|
||||
telescope = {
|
||||
enable = true;
|
||||
|
||||
extensions.manix = {
|
||||
enable = true;
|
||||
manixPackage = null;
|
||||
extensions.manix.enable = true;
|
||||
};
|
||||
web-devicons.enable = false;
|
||||
};
|
||||
plugins.web-devicons.enable = false;
|
||||
|
||||
dependencies.manix.enable = false;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue