Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glow previews not working with nvimpager #52

Open
Luis-Licea opened this issue Nov 6, 2022 · 1 comment
Open

glow previews not working with nvimpager #52

Luis-Licea opened this issue Nov 6, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Luis-Licea
Copy link

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.

@cljoly
Copy link
Owner

cljoly commented Nov 12, 2022

Thank you for opening this issue. I’ll think about it, there may be a way to improve this out of the box.

@cljoly cljoly added the bug Something isn't working label Nov 12, 2022
@cljoly cljoly pinned this issue Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants