Comments (17)
I can not reproduce this with the available information.
- Is nvimpager running when you execute
git log
or not? Or is only the highlighting off but nvimpager displays the log in black and white? - Did you set that option globally or locally in a git repo? Is $PAGER or $GIT_PAGER set?
- Does the highlighting work when you activate it manually with
:setf git
? - Is the log you tested with longer or shorter than your terminal? Or rather are you running in cat or pager mode?
from nvimpager.
@p-scvtvlatvs Ensure that you don't have $PAGER
set to something other than nvimpager
as it will overwrite the core.pager
configuration for git iirc.
from nvimpager.
- I think it is executed because it displays the log in black and white.
- I set it globally and I used the PAGER environment variable as well.
- I haven't tried :setf yet...
- The log is shorter than the terminal width and height.
from nvimpager.
@cvoges12:
If I unset PAGER
the default pager is used (I think is less
).
from nvimpager.
if you are in less and press h
it should show to help text of less (it says "SUMMARY OF LESS COMMANDS" at the top). If you are in nvimpager and execute :lua print(nvimpager)
it should print "table: 0x7f4e48937d20" or so, especially not nil
.
Does the highlighting work when you execute git log | nvimpager -c
or git log | nvimpager -p
or nvimpager ./some/file
?
from nvimpager.
Yes, it highlights with all the three commands.
from nvimpager.
If these commands work than we can at least conclude that nvimpager works on your machine.
Can you please:
- find out if nvimpager is run or if another pager is run
- when nvimpager runs try
setf git
and see if that activates highlighting - tell me what operating system you are on
- run git diff and the inside nvimpager run
:lua print(require('nvimpager')._testable.detect_parent_process())
from nvimpager.
- Yes, it runs.
- Yes, highlighting seems to be activated, but everything turns black and white when
git log
is run. - Arch Linux
- It returns the
git
value.
git config -l
and git log
still returns black and white. However, git diff
highlights...
from nvimpager.
That sounds strange. I can currently not reproduce this (in a arch linux container).
Can you try git log > file ; nvim file
?
from nvimpager.
Yes, I can see the output in nvim
.
from nvimpager.
The output or also the highlight?
I am at loss here. It seems that neovim and nvimpager are installed and working. You will have to find a way to debug this and give more precise info what is happening behind the scenes.
from nvimpager.
Just the output.
from nvimpager.
Ok, my neovim shows highlighting when I open a file that contains git log output. So the problem seems to be with the runtime files of your neovim.
- what happens if you open the output of
git log
with nvim and then execute:setf git
? - How did you install neovim?
- which version of neovim is installed?
- are several versions installed?
which -a nvim
- what is the output of
:filter git scriptnames
in nvimpager withgit log
and what is it forgit diff
(where highlighting seems to work) - what is the output of
:echo globpath(&rtp, '*/git.vim')
in nvim and nvimpager?
from nvimpager.
- Nothing.
- With
pacman
. - 0.4.4
- Two;
/bin/nvim
and/usr/bin/nvim
- With
git log
is:
/usr/share/nvim/runtime/syntax/git.vim
/usr/share/nvim/runtime/ftplugin/git.vim
Forgit diff
is the same. - Nothing for
nvim
and fornvimpager
, the same as bullet 5.
from nvimpager.
If you installed your neovim with pacman and still have 0.4.4 I assume you did not do a system update in a long time. Mind doing one?
from nvimpager.
I am really out of ideas by now. It seems that your syntax file is loaded correctly but just not applied. It does not look like you have multible versions of the same file installed. It also looks like the issue is not with nvimpager but already with plain nvim.
You will have to dig around a bit more yourself because it is really difficult for me to do this debugging remotely. If you have any more questions or need help with the debugging please ask but please also provide the info what you have tried and how it went up front.
from nvimpager.
Closed until further info is available.
from nvimpager.
Related Issues (20)
- Font Ligatures HOT 2
- nvimpager.lua:323: attempt to index field 'env' (a nil value) HOT 1
- glow previews don't work with nvimpager HOT 1
- Config option for pager mode always HOT 2
- bad ansi escape sequences parsing? HOT 15
- Strange characters instead of underline HOT 2
- Doesn't work with neovim from snap HOT 5
- Still changing the cursor even after `guicursor` is set to empty string HOT 10
- nvimpager fails when executed without options in a script HOT 5
- Install fails on nixos (`0.11.0`) HOT 2
- nvim nightly/head - command exited with status 2: sed HOT 12
- R help displayed incorrectly HOT 3
- When wrapping with Nix to set arguments, always uses `cat` mode HOT 7
- diff file type detected as man HOT 5
- Git diff uses "Identifier" highlight group for "Adding" lines HOT 1
- Is it possible to use pure lua to refactor this project? HOT 3
- display number like bat HOT 1
- How to display the code fence if the markdown? HOT 1
- Unrecognised option in busybox HOT 1
- broken tests on neovim 0.10.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvimpager.