fix(nvim): ensure path to git for neo-tree
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
e0efcfb89a
commit
29684586ff
1 changed files with 9 additions and 2 deletions
|
@ -7,7 +7,7 @@ self: {
|
||||||
inherit (self.inputs) nvim-theme-src;
|
inherit (self.inputs) nvim-theme-src;
|
||||||
inherit (self.lib.${pkgs.system}) mkVersion;
|
inherit (self.lib.${pkgs.system}) mkVersion;
|
||||||
|
|
||||||
inherit (lib) attrValues fileContents mkIf;
|
inherit (lib) attrValues fileContents getExe mkIf;
|
||||||
|
|
||||||
cfg = config.programs.neovim;
|
cfg = config.programs.neovim;
|
||||||
in {
|
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";
|
type = "lua";
|
||||||
config = fileContents ./config/neotree.lua;
|
config = fileContents ./config/neotree.lua;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue