Skip to content
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

Add API to get diff for statusline #157

Closed
Shatur opened this issue Dec 10, 2021 · 1 comment · Fixed by #220
Closed

Add API to get diff for statusline #157

Shatur opened this issue Dec 10, 2021 · 1 comment · Fixed by #220
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Shatur
Copy link
Contributor

Shatur commented Dec 10, 2021

Describe the solution you'd like

In the statusline, users often display numbers with the number of additions / changes / deletions. Since already vgit processes this information to place signs, it would be convenient to be able to get it using lua.
For example, with gitsigns plugin I can get this information using vim.b.gitsigns_status_dict.

@ibhagwan
Copy link
Contributor

ibhagwan commented May 1, 2022

@Shatur, take a look at #218, if you wish to try it out use my fork for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants