BSD Ports

sysutils/nvimpager 0.13.0 DragonFly

Use NeoVim as a pager, with full syntax highlighting

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
sysutils
Package size
15.2 KiB, 38.0 KiB installed

Description

Use neovim as a pager to view man pages, git diffs, and whatnot with neovim's syntax highlighting and mouse support.

The script also has a "cat mode" which will not start up the neovim interface but instead print a highlighted version of the file to the terminal. Like cat with neovim syntax highlighting! If the input has less lines than the terminal cat mode is activated automatically so nvimpager behaves similar to less -F. Pager mode and cat mode can be enforced with the options -p and -c respectively.

Nvimpager comes with a small set of command line options but you can also use all of neovim's command line options. Use nvimpager -h to see the help text. The configuration is separated from the users config for neovim. The main config file is ~/.config/nvimpager/init.vim. See the manpage for further explanation.

In the other systems

SystemPortVersion
DragonFlysysutils/nvimpager0.13.0
FreeBSDsysutils/nvimpager0.14.0

Install

Binary package:

pkg install nvimpager

From DPorts:

cd /usr/dports/sysutils/nvimpager && make install clean

Dependencies

Run dependencies 2

No port depends on this one.