feat(ui): toggle to show plugin URLs on home page

This commit is contained in:
Alexander Bays 2024-04-26 15:38:46 -05:00
commit f9d3365c5f
7 changed files with 51 additions and 6 deletions

View file

@ -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