Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from

Conversation

956MB
Copy link

@956MB 956MB commented Apr 26, 2024

Problem

I like using the entire summary (home) page of lazy.nvim as an easy copy/paste list of all my plugins, but I wanted each of the plugins to have their Github links right next to them as well. This would make finding your way to a specific plugin's repo a bit easier with all the links in the summary being there and copyable/clickable, and it's just a nice thing to have visually if you copy the whole list.

Proposal

Create a field urls that is toggled with the T key to show each plugin's Github url inline under the plugin list. The default state is off obviously to not clutter the screen if you don't want it, and the look is modified with the following additions to the config defaults under ui:

urls = {
  enabled = false, -- show URLs on home page by default
  front = "(",
  back = ")",
},

Before

Untitled-1

After

styles
Untitled-2

The URL at the end of the line is hidden when clicking into the details of a plugin in the list, since it's visible there next to "url:", and plugins that are loaded locally or whatever that don't have have a url attribute remain unchanged.

@folke
Copy link
Owner

folke commented May 12, 2024

I just added the commit below, which should fix your issue:

4084506

@folke folke closed this May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants