-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not committed yet formatter #476
Labels
enhancement
New feature or request
Comments
What do you propose? |
Hmm, what about: require('gitsigns').setup {
...
current_line_blame_formatter = function(name, info)
local text
if info.author == 'Not Committed Yet' then
text = ' '..info.author
else
local fmt = ' <author>, <author_time:%Y-%m-%d> - <summary>'
text = require('gitsigns.utils').expand_blame_format(fmt, name, info)
end
return {{ text, 'GitSignsCurrentLineBlame' }}
end
} We would just need to expose |
That would work for me! As long as it's documented. |
lewis6991
added a commit
that referenced
this issue
Apr 14, 2022
Used to format uncommitted lines. Resolves: #476
Sure would! |
lewis6991
added a commit
that referenced
this issue
Apr 14, 2022
Used to format uncommitted lines. Resolves: #476
This was referenced Apr 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have
current_line_blame_formatter = ' <author>, <author_time:%Y-%m-%d> - <summary>'
. The
symbol (from nerd fonts, it's a source control symbol) helps to distinguish the virtual text from gitsigns from other text. The virtual text which saysNot Committed Yet
doesn't have any distinguishing characteristics, it would be really nice to be able to configure it to say Not Committed Yet
instead.The text was updated successfully, but these errors were encountered: