Add wordcount part

This commit is contained in:
Olivier Roques
2020-12-25 14:07:40 +01:00
parent 7d868514cd
commit 184eecba87
4 changed files with 60 additions and 11 deletions

View File

@@ -17,7 +17,8 @@ local function get_branch()
end
local function get_item()
return table.concat({' ', get_hunks(), get_branch(), ' '})
local item = table.concat({' ', get_hunks(), get_branch(), ' '})
return item == ' ' and '' or item
end
return {