docs: new plugin piper.yazi to preview any shell command

This commit is contained in:
sxyazi
2025-04-12 15:10:23 +08:00
parent 9c6e4ef60b
commit b88fe7330a
3 changed files with 4 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ function M:peek(job)
else
lines = lines:gsub("\t", string.rep(" ", rt.preview.tab_size))
ya.preview_widgets(job, {
ui.Text.parse(lines):area(job.area):wrap(rt.preview.wrap == "yes" and ui.Text.WRAP or ui.Text.WRAP_NO),
ui.Text.parse(lines):area(job.area),
})
end
end