fix?: remove yazi executable from path (recursion problem)

This commit is contained in:
Guz
2024-12-12 11:33:45 -03:00
parent 20bc2bb9a7
commit 4e6121b312
3 changed files with 7 additions and 7 deletions

View File

@@ -30,7 +30,9 @@
f system pkgs);
in {
packages = forAllSystems (system: pkgs: {
neovim = pkgs.callPackage ./neovim.nix {inherit inputs;};
neovim = pkgs.callPackage ./neovim.nix {
go-grip = inputs.go-grip.packages.${system}.default;
};
default = self.packages.${system}.neovim;
});

View File

@@ -200,6 +200,7 @@ return {
{
-- (Probably can be replaced by local functions in the config)
"tfm.nvim",
enabled = vim.fn.executable("yazi"),
cmd = { "Ex", "Tfm", "TfmSplit", "TfmVsplit", "TfmTabedit" },
keys = {
{ "<leader>e", ":Tfm<cr>", desc = "[TFM] Open file manager" },

View File

@@ -1,14 +1,12 @@
{
inputs,
symlinkJoin,
makeWrapper,
runCommandLocal,
pkgs,
lib,
yazi ? pkgs.yazi,
}: let
...
} @ args: let
nvimPkg = pkgs.neovim-unwrapped;
yaziPkg = yazi;
startPlugins = with pkgs;
with vimPlugins; [
@@ -102,8 +100,7 @@
lf
ripgrep
inputs.go-grip.packages.${pkgs.system}.default
yaziPkg
args.go-grip
];
foldPlugins = builtins.foldl' (acc: next: acc ++ [next] ++ (foldPlugins (next.dependencies or []))) [];