add chafa to nvim

Signed-off-by: Hadi <hadi@example.com>
This commit is contained in:
Hadi
2026-06-09 15:51:49 +02:00
parent c27c0550fb
commit 4addb1bd33
+4
View File
@@ -41,6 +41,10 @@
} }
]; ];
prepend_previewers = [ prepend_previewers = [
{
mime = "image/*";
run = ''piper -- chafa --format symbols --animate off --size "$w"x"$h" -- "$1"'';
}
{ {
url = "*.md"; url = "*.md";
run = ''piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"''; run = ''piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'';