Skip to content

glow previews not working with nvimpager #52

@Luis-Licea

Description

@Luis-Licea

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions