fix(nvim): ensure path to git for neo-tree
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-01-09 12:44:26 -05:00
parent e0efcfb89a
commit 29684586ff

View file

@ -7,7 +7,7 @@ self: {
inherit (self.inputs) nvim-theme-src;
inherit (self.lib.${pkgs.system}) mkVersion;
inherit (lib) attrValues fileContents mkIf;
inherit (lib) attrValues fileContents getExe mkIf;
cfg = config.programs.neovim;
in {
@ -105,7 +105,14 @@ in {
}
{
plugin = pkgs.vimPlugins.neo-tree-nvim;
plugin = pkgs.vimPlugins.neo-tree-nvim.overrideAttrs (o: {
postPatch = ''
${o.postPatch or ""}
for file in $(${pkgs.findutils}/bin/find ./lua/neo-tree -type f -name "*.lua"); do
substituteInPlace "$file" --replace-warn '"git"' '"${getExe pkgs.gitFull}"'
done
'';
});
type = "lua";
config = fileContents ./config/neotree.lua;
}