zsh: Remove nvim-man and use neovim as MANPAGER

`:Man` wraps to the window width if `$MANWIDTH` is not set, making
`nvim-man` as man wrapper obsolete.
This commit is contained in:
2022-10-09 05:52:19 +02:00
parent 50640bc294
commit eb160de09b
3 changed files with 4 additions and 16 deletions

View File

@@ -90,6 +90,10 @@ LESS+="${LESS:+ }--RAW-CONTROL-CHARS"
LESS+="${LESS:+ }--quit-if-one-screen"
export LESS
# Use neovim's man plugin as manpager
(( ! $+commands[nvim] )) || \
export MANPAGER='nvim +"Man! | set scrolloff=999 | normal M"'
# NOTE: This is used in keys.zsh for the ALT_C widget
fzf_default_no_rg="find -L . -mindepth 1 \("
fzf_default_no_rg+=" -name '.git' -o"