You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The glow previews for README.md files don't work when the PAGER environment variable is set to nvimpager, but they work with less -r and most. This is because the previews calls glow -p which uses the $PAGER environment variable. I found two workarounds. The first one was to set export MANPAGER=nvimpager and export PAGER=most so that nvimpager does not get called in the first place. The other one was to set a different pager from within init.lua using if vim.fn.executable('less') then vim.fn.setenv("PAGER", "less -r") end.
I opened an issue here and in the glow repo so that the problem is documented.
The text was updated successfully, but these errors were encountered:
The glow previews for
README.md
files don't work when thePAGER
environment variable is set tonvimpager
, but they work withless -r
andmost
. This is because the previews callsglow -p
which uses the$PAGER
environment variable. I found two workarounds. The first one was to setexport MANPAGER=nvimpager
andexport PAGER=most
so thatnvimpager
does not get called in the first place. The other one was to set a different pager from within init.lua usingif vim.fn.executable('less') then vim.fn.setenv("PAGER", "less -r") end
.I opened an issue here and in the
glow
repo so that the problem is documented.The text was updated successfully, but these errors were encountered: