telescope-repo.nvim icon indicating copy to clipboard operation
telescope-repo.nvim copied to clipboard

glow previews not working with nvimpager

Open Luis-Licea opened this issue 3 years ago • 1 comments

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.

Luis-Licea avatar Nov 06 '22 21:11 Luis-Licea

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

cljoly avatar Nov 12 '22 20:11 cljoly