lucc / nvimpager

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

Allow forcing pager or cat mode from init.vim #78

Closed mike-lloyd03 closed 2 years ago

mike-lloyd03 commented 2 years ago

This is for #77 and allows a user to enforce pager or cat mode from init.vim.

The execution here is pretty janky and I almost feel bad doing it like this, but it works. There are two recognized configuration options added:

However, these aren't really read by nvim at all. Instead, they are grepped by the nvimpager script and used to determine which mode should be used if the user doesn't specify it on the command line.

If you are okay with this, I can add tests and update the readme.