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
It would be great if there were a configuration option for forcing pager mode rather than having to use the -p flag. Setting the PAGER variable with a flag isn't possible and you also can set an environment variable to a custom function. The workaround I have in place is a script like this:
#!/bin/bash
nvimpager -p <&0
And setting PAGER to that script which is not desirable.
Something like:
luanvimpager.force_pager_mode=true
and maybe an equivalent command for cat mode would be great.
Thanks for nvimpager!
The text was updated successfully, but these errors were encountered:
This is not possible with the current design of nvimpager:
In pager mode nvim is started normally with a TUI, in cat mode nvim is started with the --headless flag. But when you set an option in lua or vimscript (wither by --cmd, -c or -u) it will only be available after the nvim process has started. We can not change the headless mode after starting nvim.
It would be great if there were a configuration option for forcing pager mode rather than having to use the
-p
flag. Setting thePAGER
variable with a flag isn't possible and you also can set an environment variable to a custom function. The workaround I have in place is a script like this:And setting
PAGER
to that script which is not desirable.Something like:
and maybe an equivalent command for cat mode would be great.
Thanks for nvimpager!
The text was updated successfully, but these errors were encountered: