Use neovim as man pager

This commit is contained in:
Kenneth Benzie 2024-08-03 00:09:45 +01:00
parent 0ad3647ddc
commit 4ff10eb05e

2
zshenv
View File

@ -57,6 +57,8 @@ typeset -U INFOPATH; export INFOPATH
# Set default editor.
if command -v nvim &> /dev/null; then
export EDITOR=`command -v nvim`
# Also use nvim for man pages
export MANPAGER='nvim +Man!'
elif command -v vim &> /dev/null; then
export EDITOR=`command -v vim`
fi