Closed sahashirshendu closed 2 years ago
ye. great idea =)
Heyyo @sahashirshendu ,
I have the gitsigns plugin installed and it exposes buffer variables like gitsigns_status
and gitsigns_status_dict
.
In my case, i use this component:
function()
return vim.b.gitsigns_status or ''
end
This will be formatted the way that we provide inside gitsigns setup() function.
We could also use the b:gitsigns_status_dict
for more finer control.
Thanks. It is what I was looking for.
Is it possible to add git diff in the statusline like lualine shows?