summaryrefslogtreecommitdiff
path: root/lf
diff options
context:
space:
mode:
Diffstat (limited to 'lf')
-rw-r--r--lf/lfrc4
-rwxr-xr-xlf/preview.sh3
2 files changed, 7 insertions, 0 deletions
diff --git a/lf/lfrc b/lf/lfrc
new file mode 100644
index 0000000..ad4bdb2
--- /dev/null
+++ b/lf/lfrc
@@ -0,0 +1,4 @@
+map . set hidden!
+
+set previewer ~/.config/lf/preview.sh
+map i $~/.config/lf/preview.sh $f | less -RX
diff --git a/lf/preview.sh b/lf/preview.sh
new file mode 100755
index 0000000..46582bf
--- /dev/null
+++ b/lf/preview.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+unset COLORTERM
+bat --color=always --theme=base16 "$@"