zsh:funcs:nvim-man: Format nvim commands

This commit is contained in:
2022-02-03 16:58:23 +01:00
parent dd7302f311
commit 6d64a0e609

View File

@@ -404,7 +404,13 @@ nvim-man() {
command man -w "$1" >/dev/null || return command man -w "$1" >/dev/null || return
# $MANPAGER would do the trick too but lines would be hard-wrapped. # $MANPAGER would do the trick too but lines would be hard-wrapped.
nvim -u NORC +"runtime! plugin/man.vim | Man $1 | only | set scrolloff=999 | normal M" nvim -u NORC +"
runtime! plugin/man.vim |
Man $1 |
only |
set scrolloff=999 |
normal M
"
else else
command man "$@" command man "$@"
fi fi