You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks to vim.b.gitsigns_* variables, it's really easy to get git status for a buffer. However, I don't find a similar way to fetch the repository git status. I think it would be helpful if we could get the info from a global variable.
Proposal
Create global variables for repository git status, e.g. vim.g.gitsigns_status, and vim.g.gitsigns_status_dict.
Stored information
On different verbosity levels, I would imagine the following information could be stored, from low to high
A flag whether the repo has changed
The number of changed files in total
Sophisticated information on numbers of files in different statuses, like modified, added, staged, etc.
The text was updated successfully, but these errors were encountered:
Can I know why isn't Gitsigns needed for this? My apologise if I missed some obvious reasons, or existing implementations.
The reason I ask is that I tried to implement it on my local and it's working, if it's an acceptable feature, I would like to raise a PR if it's allowed.
Description
Thanks to
vim.b.gitsigns_*
variables, it's really easy to get git status for a buffer. However, I don't find a similar way to fetch the repository git status. I think it would be helpful if we could get the info from a global variable.Proposal
Create global variables for repository git status, e.g.
vim.g.gitsigns_status
, andvim.g.gitsigns_status_dict
.Stored information
On different verbosity levels, I would imagine the following information could be stored, from low to high
The text was updated successfully, but these errors were encountered: