From 35e5a00e6fb97e20b7ba857da69941d1a31744d7 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 15 Dec 2024 14:39:48 +0100 Subject: fix(modules/lf): Always retry connecting to the server Otherwise, the connection seems to fail again. --- modules/by-name/lf/lf/module.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/by-name/lf') 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" }} -- cgit 1.4.1