mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 21:06:46 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -499,7 +499,9 @@ function M:details(plugin)
|
|||
if git.branch then
|
||||
table.insert(props, { "branch", git.branch })
|
||||
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
|
||||
if Util.file_exists(plugin.dir .. "/README.md") then
|
||||
table.insert(props, { "readme", "README.md" })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue