lucc / nvimpager

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

Git colors aren't properly parsed #19

Closed 3v1n0 closed 4 years ago

3v1n0 commented 4 years ago

Git colors work when using the default syntax highlighter

However when using it as a pager (i.e. using GIT_PAGER="nvimpager -p" git graph) the result isn't correct.

this pager: less

less: nvimpager

lucc commented 4 years ago

Nvimpager uses neovim's syntax highlighting and apparently that only handles log and diff. You will have to fix this upstream.

lucc commented 1 year ago

FYI there was #68 which added an option nvimpager.git_colors that might do what you want.