Closed robinmoussu closed 11 months ago
Hey @robinmoussu can you try updating to the latest version and seeing if this issue still exists? I'm unable to reproduce this issue on the latest version. Also, side note that the command should technically have an exclamation/bang for external commands:
[alias]
custom_command = "!sh -c \"nvim some_file.txt\" -"
I am closing this issue due to inactivity. I can't reproduce this problem on the current version. If you still have an issue, please comment and we can reopen this issue
Sorry, I forgot to check my github inbox. Indeed, it does seems to work. Thanks for the work you did in your plugin.
When opening nvim using a custom git alias,
git-blame.nvim
displays “Not Committed Yet” on all lines.How to reproduce:
You need to be in a git repository that contains a file
some_file.txt
. Add this in your~/.config/git/config
(or~/.gitconfig
, or./.gitconfig
, or …)Then run
It will start nvim with
some_file.txt
. On all lines of the file, you will haveNot Committed Yet
instead of the correct commit message.It does work if I run the command directly :
sh -c "nvim some_file.txt" -
OS: macOS Catalina 10.15.7 git version: 2.30.0 git-blame.nvim: 41e22dc (19th of August, current master) installed with lazy