diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-15 14:39:48 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-15 14:39:48 +0100 |
commit | 35e5a00e6fb97e20b7ba857da69941d1a31744d7 (patch) | |
tree | 6ac095b5fac6d0bdcb2caf47a60bcfc43f2a27ea /modules | |
parent | fix(modules/lf/ctpv/prev/any): Also provide the `HELPERS` replacementString (diff) | |
download | nixos-config-35e5a00e6fb97e20b7ba857da69941d1a31744d7.tar.gz nixos-config-35e5a00e6fb97e20b7ba857da69941d1a31744d7.zip |
fix(modules/lf): Always retry connecting to the server
Otherwise, the connection seems to fail again.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/by-name/lf/lf/module.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/by-name/lf/lf/module.nix b/modules/by-name/lf/lf/module.nix index bff2feb0..1c587c9d 100644 --- a/modules/by-name/lf/lf/module.nix +++ b/modules/by-name/lf/lf/module.nix @@ -62,7 +62,7 @@ in { # Always keep the server running autoquit = false; - # disable the cusor in the preview pane + # disable the cursor in the preview pane cursorpreviewfmt = ""; # preview for directories @@ -96,9 +96,9 @@ in { tmp="$(mktemp)" ${lib.getExe pkgs.lf-make-map} --depth 4 generate ~/media ~/repos ~/school >"$tmp" - until lf -remote "send $id source $tmp"; do - sleep 0.2 - done + lf -remote "send $id source $tmp" + sleep 1 + lf -remote "send $id source $tmp" rm "$tmp" }} |