mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
fix(render): show message if not yet committed
This commit is contained in:
parent
57cce98dfd
commit
a1d1567ad9
1 changed files with 5 additions and 1 deletions
|
@ -499,7 +499,11 @@ 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" })
|
||||
else
|
||||
table.insert(props, { "commit", "No commits yet" })
|
||||
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