2021-01-04 00:37:49 +01:00
|
|
|
local function signify()
|
|
|
|
if vim.fn.exists('*sy#repo#get_stats') == 0 then return '' end
|
|
|
|
local added, modified, removed = unpack(vim.fn['sy#repo#get_stats']())
|
2021-01-11 08:44:53 +06:00
|
|
|
if added == -1 then return '' end
|
2021-01-04 02:14:29 +01:00
|
|
|
local data = {
|
2021-01-11 08:44:53 +06:00
|
|
|
'+'..added,
|
|
|
|
'-'..removed,
|
|
|
|
'~'..modified,
|
2021-01-04 02:14:29 +01:00
|
|
|
}
|
|
|
|
return table.concat(data, ' ')
|
2021-01-04 00:37:49 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
return signify
|