Prepare components

This commit is contained in:
Olivier Roques
2020-12-22 23:53:44 +01:00
parent 355aacba17
commit 1d80803552
9 changed files with 36 additions and 26 deletions

View File

@@ -18,12 +18,12 @@ function M.get_branch()
if not g.loaded_gitgutter then
return ''
end
return string.format(' %s', fn.FugitiveHead())
return string.format('%s', fn.FugitiveHead())
end
function M.get_component()
function M.get_item()
return table.concat({
[[%{luaeval('require("hardline.git").get_hunks()')}]],
[[%{luaeval('require("hardline.git").get_hunks()')}]], ' ',
[[%{luaeval('require("hardline.git").get_branch()')}]],
})
end