fix(picker.git): formatting of git log

This commit is contained in:
Folke Lemaitre 2025-02-18 21:10:25 +01:00
parent 988af56423
commit f32002607a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -168,7 +168,7 @@ function M.git_log(item, picker)
local ret = {} ---@type snacks.picker.Highlight[]
ret[#ret + 1] = { picker.opts.icons.git.commit, "SnacksPickerGitCommit" }
local c = item.commit or item.branch or "HEAD"
ret[#ret + 1] = { a(c, 7, { truncate = true }), "SnacksPickerGitCommit" }
ret[#ret + 1] = { a(c, 8, { truncate = true }), "SnacksPickerGitCommit" }
ret[#ret + 1] = { " " }
if item.date then