about summary refs log tree commit diff stats
path: root/modules/by-name/lf
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-15 14:39:48 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-15 14:39:48 +0100
commit35e5a00e6fb97e20b7ba857da69941d1a31744d7 (patch)
tree6ac095b5fac6d0bdcb2caf47a60bcfc43f2a27ea /modules/by-name/lf
parentfix(modules/lf/ctpv/prev/any): Also provide the `HELPERS` replacementString (diff)
downloadnixos-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 '')
-rw-r--r--modules/by-name/lf/lf/module.nix8
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"
           }}