From 69db68bdd5f84e9bd07a0ba8ca35d01fd53fb3f5 Mon Sep 17 00:00:00 2001 From: ene Date: Fri, 10 Mar 2023 17:03:04 +0100 Subject: Feat(hm/conf/lf): Add ctpv as a previewer --- home-manager/config/lf/default.nix | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'home-manager/config/lf') diff --git a/home-manager/config/lf/default.nix b/home-manager/config/lf/default.nix index 21fc17e1..3cfe3b40 100644 --- a/home-manager/config/lf/default.nix +++ b/home-manager/config/lf/default.nix @@ -338,11 +338,10 @@ in { gt = "cd /tmp"; }; - # TODO add ctpv, if it gets merged - # previewer = { - # keybinding = "i"; - # source = pkgs.ctpv; - # }; + previewer = { + keybinding = "i"; + source = pkgs.ctpv; + }; settings = { # TODO this needs to be added to nixos: #autoquit = true; # quit the server, if no clients are left @@ -360,15 +359,13 @@ in { shellopts = "-eu"; # e: exit on error; u: error for unset variables }; # TODO remove auto quit, if it has been added - # TODO add ctpv, if it gets merged - extraConfig = - # &ctpv -s $id - # &ctpvquit $id - # set cleaner = {pkgs.ctpv} - '' - set autoquit = true - set dirpreviews = true - ''; + extraConfig = '' + &ctpv -s $id + &ctpvquit $id + set cleaner = {pkgs.ctpv} + set autoquit = true # close the server, after the last client exits + set dirpreviews = true # preview directories + ''; }; } # vim: ts=2 -- cgit 1.4.1