From 63cfb1c741eed5bd48803e5e9c3bc0f56d626383 Mon Sep 17 00:00:00 2001 From: willifan <willifan@proton.me> Date: Fri, 4 Oct 2024 14:31:25 +0200 Subject: [PATCH] added yazi to nixvim --- users/willifan/common/nixvim/default.nix | 4 +++- users/willifan/common/nixvim/yazi.nix | 11 +++++++++++ users/willifan/common/utils/default.nix | 7 +++++-- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 users/willifan/common/nixvim/yazi.nix diff --git a/users/willifan/common/nixvim/default.nix b/users/willifan/common/nixvim/default.nix index 56892c6..5aea761 100644 --- a/users/willifan/common/nixvim/default.nix +++ b/users/willifan/common/nixvim/default.nix @@ -1,8 +1,9 @@ -{ ... }: +{ pkgs-unstable, ... }: { programs.nixvim = { enable = true; + package = pkgs-unstable.neovim-unwrapped; defaultEditor = true; }; @@ -13,6 +14,7 @@ ./navic.nix ./neotree.nix ./toggleterm.nix + ./yazi.nix ]; } diff --git a/users/willifan/common/nixvim/yazi.nix b/users/willifan/common/nixvim/yazi.nix new file mode 100644 index 0000000..14bce77 --- /dev/null +++ b/users/willifan/common/nixvim/yazi.nix @@ -0,0 +1,11 @@ +{ pkgs-unstable, ... }: +{ + + programs.nixvim.plugins = { + yazi = { + enable = true; + package = pkgs-unstable.vimPlugins.yazi-nvim; + }; + }; + +} diff --git a/users/willifan/common/utils/default.nix b/users/willifan/common/utils/default.nix index 13bcbe4..d617c7f 100644 --- a/users/willifan/common/utils/default.nix +++ b/users/willifan/common/utils/default.nix @@ -1,4 +1,4 @@ -{ ... }: +{ pkgs-unstable, ... }: { @@ -6,7 +6,10 @@ services.avizo.enable = true; programs.bat.enable = true; programs.btop.enable = true; - programs.yazi.enable = true; + programs.yazi = { + enable = true; + package = pkgs-unstable.yazi; + }; programs.nushell.enable = true; }; }