lucc / nvimpager

Use nvim as a pager to view manpages, diffs, etc with nvim's syntax highlighting
Other
365 stars 19 forks source link

glow previews don't work with nvimpager #76

Closed Luis-Licea closed 1 year ago

Luis-Licea commented 1 year ago

Calling glow -p README.md returns an error when PAGER=nvimpager. This is because glow -p uses the $PAGER environment variable. A workaround is to set the PAGER environment variable to less -r or most and MANPAGER to nvimpager so that nvimpager does not get called in the first place.

I opened an issue here and in the glow repo so that the problem is documented.

All markdown files over a certain length give this error. I attached an example. test.md

lucc commented 1 year ago

Can you please describe the error in more detail. You just state that there is some error. Normally you would describe what you expect to happen and what actually happend in a bug report. Please provide all relevant info so that others can reproduce the error.