summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-07-02 10:05:41 +0200
committerAdam <adam@adast.xyz>2022-07-03 13:40:06 +0100
commitf7b1986036cd7a1aaff3a62ec49618f990814d1c (patch)
treef6f1a845bc5a8259c4edc2fa4485f91410b068a7
parent6b915c9de9a1469f966ee80f9b050dec0e4bbb9c (diff)
lf: switched from stpv to ctpv
-rw-r--r--.config/ctpv/config3
-rw-r--r--.config/lf/lfrc8
2 files changed, 7 insertions, 4 deletions
diff --git a/.config/ctpv/config b/.config/ctpv/config
new file mode 100644
index 0000000..d5b1870
--- /dev/null
+++ b/.config/ctpv/config
@@ -0,0 +1,3 @@
+preview markdown .md {{
+ glow -w $(("$w" - 2)) -s dark "$f"
+}}
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index e7aecc6..5971a0a 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -5,10 +5,10 @@ set scrolloff 10
set hidden
set icons
-set previewer stpv
-set cleaner stpvimgclr
-&stpvimg --listen $id
-cmd on-quit $stpvimg --end $id
+set previewer ctpv
+set cleaner ctpvclear
+&ctpv -s $id
+cmd on-quit $ctpv -e $id
cmd open ${{
test -L $f && f=$(readlink -f $f)