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,7 +499,9 @@ 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
|
||||||
table.insert(props, { "commit", git.commit:sub(1, 7), "LazyCommit" })
|
if git.commit then
|
||||||
|
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" })
|
||||||
|
|
Loading…
Reference in New Issue