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";
|
typst.default = "typst";
|
||||||
ueberzug.default = "ueberzugpp";
|
ueberzug.default = "ueberzugpp";
|
||||||
which.default = "which";
|
which.default = "which";
|
||||||
|
yazi.default = "yazi";
|
||||||
};
|
};
|
||||||
|
|
||||||
mkDependencyOption = name: properties: {
|
mkDependencyOption = name: properties: {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
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.
|
See the [upstream docs](https://github.com/mikavilpas/yazi.nvim?tab=readme-ov-file#%EF%B8%8F-keybindings) for details.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
extraOptions = {
|
imports = [
|
||||||
yaziPackage = lib.mkPackageOption pkgs "yazi" {
|
# TODO: added 2025-04-07, remove after 25.05
|
||||||
nullable = true;
|
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||||
};
|
plugin = "yazi";
|
||||||
};
|
packageName = "yazi";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
extraConfig = cfg: {
|
extraConfig = {
|
||||||
extraPackages = [ cfg.yaziPackage ];
|
dependencies.yazi.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue