mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
feat(ui): toggle to show plugin URLs on home page
This commit is contained in:
parent
3f13f08043
commit
f9d3365c5f
7 changed files with 51 additions and 6 deletions
|
@ -424,6 +424,15 @@ function M:plugin(plugin)
|
|||
end
|
||||
end
|
||||
self:diagnostics(plugin)
|
||||
if plugin.url and self.view.state.urls and self.view.state.mode == "home" and not self.view:is_selected(plugin) then
|
||||
self:append(
|
||||
(plugin._.loaded and " " or "")
|
||||
.. Config.options.ui.urls.front
|
||||
.. (plugin.url:gsub("%.git$", ""))
|
||||
.. Config.options.ui.urls.back,
|
||||
"LazyComment"
|
||||
)
|
||||
end
|
||||
self:nl()
|
||||
|
||||
if self.view:is_selected(plugin) then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue