mirror of https://github.com/folke/lazy.nvim.git
fix(render): show message if not yet committed (#707)
* fix(render): show message if not yet committed * fix(render): show commit only if it can be shown
This commit is contained in:
parent
57cce98dfd
commit
b7a1a0fbaf
|
@ -499,8 +499,10 @@ function M:details(plugin)
|
||||||
if git.branch then
|
if git.branch then
|
||||||
table.insert(props, { "branch", git.branch })
|
table.insert(props, { "branch", git.branch })
|
||||||
end
|
end
|
||||||
|
if git.commit then
|
||||||
table.insert(props, { "commit", git.commit:sub(1, 7), "LazyCommit" })
|
table.insert(props, { "commit", git.commit:sub(1, 7), "LazyCommit" })
|
||||||
end
|
end
|
||||||
|
end
|
||||||
if Util.file_exists(plugin.dir .. "/README.md") then
|
if Util.file_exists(plugin.dir .. "/README.md") then
|
||||||
table.insert(props, { "readme", "README.md" })
|
table.insert(props, { "readme", "README.md" })
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue