Closed abhilash26 closed 8 months ago
Heyyo @abhilash26,
The problem with git related info in statuslines is, it becomes sluggish if not done correctly. Even the git branch section is inefficient in staline.
I am thinking of providing integrations with gitsigns like you mentioned. Feline did something similar too. But it might take some time because I have exams 😭
@tamton-aquib, Salaam Alekum, Good luck in your exams. I did not know you are young. Please let this issue opened.
Please let this issue opened.
Sure 👍🏻
Hi @abhilash26,
So I have been checking issues and PR's in all my repos and wanted to check this one too. I researched a bit and gitsigns already have statusline related config defined.
Especially :h gitsigns-config-status_formatter
.
After defining it, we could just add the git_diff
section to staline.
Closing this issue for now but feel free to open it if needed 👍🏻
Hello @tamton-aquib,
I tried using git_diff
but couldn't get the icons and colors, all of them were in one color.
I have a request, please use git_diff and give us options for icons and color for each (added, modified and deleted) highlights.
Nevermind, I rolled my own statusline plugin https://github.com/abhilash26/zenline.nvim
First of all thank you for making this plugin.
I wanted to add git diff in my statusbar. I have seen #27 and used that to make up some code