mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/dependencies: add yazi
This commit is contained in:
parent
961a96b537
commit
480bb9b311
2 changed files with 10 additions and 8 deletions
|
@ -31,6 +31,7 @@ let
|
|||
typst.default = "typst";
|
||||
ueberzug.default = "ueberzugpp";
|
||||
which.default = "which";
|
||||
yazi.default = "yazi";
|
||||
};
|
||||
|
||||
mkDependencyOption = name: properties: {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -22,14 +21,16 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
See the [upstream docs](https://github.com/mikavilpas/yazi.nvim?tab=readme-ov-file#%EF%B8%8F-keybindings) for details.
|
||||
'';
|
||||
|
||||
extraOptions = {
|
||||
yaziPackage = lib.mkPackageOption pkgs "yazi" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
imports = [
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = "yazi";
|
||||
packageName = "yazi";
|
||||
})
|
||||
];
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [ cfg.yaziPackage ];
|
||||
extraConfig = {
|
||||
dependencies.yazi.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
settingsOptions = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue